AnsPress_Admin::tax_menu_correction( string $parent_file )
Description #
Highlight the proper top level menu.
Parameters #
- $parent_filestring (Required) parent menu item.
Source #
File: admin/anspress-admin.php
public static function tax_menu_correction( $parent_file ) { global $current_screen; $taxonomy = $current_screen->taxonomy; if ( 'question_category' === $taxonomy || 'question_tag' === $taxonomy || 'question_label' === $taxonomy || 'rank' === $taxonomy || 'badge' === $taxonomy ) { $parent_file = 'anspress'; } return $parent_file; }
Expand full source code Collapse full source code View on GitHub: admin/anspress-admin.php:275
Add your comment