add_help_tab( $help_tab ); } // Add help sidebar get_current_screen()->set_help_sidebar( '
' . __( 'More information', 'bulk-delete' ) . '
' . '' . __( 'Support Forums', 'bulk-delete' ) . '
' . '' . __( 'Buy pro addons', 'bulk-delete' ) . '
' . '' . __( "Plugin author's blog", 'bulk-delete' ) . '
' . '' . __( "Other Plugin's by Author", 'bulk-delete' ) . '
' ); } /** * Get the list of help tabs for a given screen. * * @since 5.1 * @static * @access private * * @param string $screen Screen name * * @return array $help_tabs List of tabs */ private static function get_help_tabs( $screen ) { $bd = BULK_DELETE(); $help_tabs = array(); switch ( $screen ) { case $bd->posts_page: $overview_tab = array( 'title' => __( 'Overview', 'bulk-delete' ), 'id' => 'overview_tab', 'content' => '' . __( 'This screen contains different modules that allows you to delete posts or schedule them for deletion.', 'bulk-delete' ) . '
', 'callback' => false, ); $help_tabs['overview_tab'] = $overview_tab; break; case $bd->pages_page: // Overview tab $overview_tab = array( 'title' => __( 'Overview', 'bulk-delete' ), 'id' => 'overview_tab', 'content' => '' . __( 'This screen contains different modules that allows you to delete pages or schedule them for deletion.', 'bulk-delete' ) . '
', 'callback' => false, ); $help_tabs['overview_tab'] = $overview_tab; break; } // about plugin tab $about_plugin_tab = array( 'title' => __( 'About Plugin', 'bulk-delete' ), 'id' => 'about_plugin_tab', 'content' => '', 'callback' => array( 'Bulk_Delete_Help_Screen', 'print_about_plugin_tab_content' ), ); $help_tabs['about_plugin_tab'] = $about_plugin_tab; /** * Filters help tab content for admin screens. * * @since 5.1 */ return apply_filters( 'bd_admin_help_tabs', $help_tabs, $screen ); } /** * print the about plugin tab content. * * @since 5.1 * @static */ public static function print_about_plugin_tab_content() { echo '' . __( 'This plugin allows you to perform bulk operations in WordPress easily.', 'bulk-delete' ) . '
'; echo '' . __( 'This plugin can be used to delete the posts, pages or users using various filters and conditions.', 'bulk-delete' ) . '
'; } }