addActionsFilters(); * * That's it. */ public function addActionsFilters() { if (is_admin()) { // If we are in admin pages. // Add theme help to the menu. add_action('admin_menu', [$this, 'themeHelpMenu']); } }// addActionsFilters /** * Add theme help to the menu. * * @access private Do not access this method directly. This is for hook callback not for direct call. */ public function themeHelpMenu() { add_theme_page(__('Bootstrap Basic4 help', 'bootstrap-basic4'), __('Bootstrap Basic4 help', 'bootstrap-basic4'), 'edit_posts', 'bsb4_help', [$this, 'themeHelpPage']); }// themeHelpMenu /** * Display the theme help page content. * * @access private Do not access this method directly. This is for hook callback not for direct call. */ public function themeHelpPage() { include get_template_directory() . '/inc/views/ThemeHelp/themeHelpPage_v.php'; }// themeHelpPage } }