/** * Output addon page content * * @since 5.0 * @static */ public static function display_addon_page() { if (!class_exists('WP_List_Table')) { require_once ABSPATH . WPINC . '/class-wp-list-table.php'; } if (!class_exists('License_List_Table')) { require_once Bulk_Delete::$PLUGIN_DIR . '/include/license/class-license-list-table.php'; } $license_list_table = new License_List_Table(); $license_list_table->prepare_items(); ?> <div class="wrap"> <h2><?php _e('Addon Licenses', 'bulk-delete'); ?> </h2> <?php settings_errors(); ?> <form method="post" action="options.php"> <?php $license_list_table->display(); do_action('bd_license_form'); bd_display_available_addon_list(); ?> </form> </div> <?php /** * Runs just before displaying the footer text in the "Addon" admin page. * * This action is primarily for adding extra content in the footer of "Addon" admin page. * * @since 5.0 */ do_action('bd_admin_footer_addon_page'); }
/** * Display the schedule page */ public function display_cron_page() { if (!class_exists('WP_List_Table')) { require_once ABSPATH . WPINC . '/class-wp-list-table.php'; } if (!class_exists('Cron_List_Table')) { require_once self::$PLUGIN_DIR . '/include/cron/class-cron-list-table.php'; } // Prepare Table of elements $cron_list_table = new Cron_List_Table(); $cron_list_table->prepare_items(); ?> <div class="wrap"> <h2><?php _e('Bulk Delete Schedules', 'bulk-delete'); ?> </h2> <?php settings_errors(); // Table of elements $cron_list_table->display(); bd_display_available_addon_list(); ?> </div> <?php /** * Runs just before displaying the footer text in the "Schedules" admin page. * * This action is primarily for adding extra content in the footer of "Schedules" admin page. * * @since 5.0 */ do_action('bd_admin_footer_cron_page'); }