| Conditions | 3 |
| Paths | 3 |
| Total Lines | 27 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | function bd_render_delete_pages_from_trash() { |
||
| 30 | if ( BD_Util::is_pages_box_hidden( Bulk_Delete::BOX_PAGE_FROM_TRASH ) ) { |
||
| 31 | printf( __( 'This section just got enabled. Kindly <a href = "%1$s">refresh</a> the page to fully enable it.', 'bulk-delete' ), 'admin.php?page=' . Bulk_Delete::PAGES_PAGE_SLUG ); |
||
| 32 | return; |
||
| 33 | } |
||
| 34 | |||
| 35 | if ( ! class_exists( 'Bulk_Delete_From_Trash' ) ) { |
||
| 36 | ?> |
||
| 37 | <!-- pages In Trash box start--> |
||
| 38 | <p> |
||
| 39 | <span class = "bd-pages-trash-pro" style = "color:red"> |
||
| 40 | <?php _e( 'You need "Bulk Delete From Trash" Addon, to delete pages in Trash.', 'bulk-delete' ); ?> |
||
| 41 | <a href = "http://bulkwp.com/addons/bulk-delete-from-trash/?utm_source=wpadmin&utm_campaign=BulkDelete&utm_medium=buynow&utm_content=bd-th">Buy now</a> |
||
| 42 | </span> |
||
| 43 | </p> |
||
| 44 | <!-- pages In Trash box end--> |
||
| 45 | <?php |
||
| 46 | } else { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Render delete pages from trash box |
||
| 50 | * |
||
| 51 | * @since 5.4 |
||
| 52 | */ |
||
| 53 | do_action( 'bd_render_delete_pages_from_trash' ); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | ?> |
||
| 57 |