Created
August 18, 2016 11:51
-
-
Save tommcfarlin/75ffaf38091f2b50439d22bfece2717c to your computer and use it in GitHub Desktop.
[WordPress]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hooks the submenu page functionality into the admin_menu hook of WordPress | |
* so we can customize it for Scheduled posts. | |
*/ | |
public function init() { | |
add_action( | |
'admin_menu', | |
array( $this, 'add_submenu_page' ) | |
); | |
add_action( | |
'admin_enqueue_scripts', | |
array( $this, 'admin_enqueue_scripts' ) | |
); | |
add_action( | |
'admin_enqueue_scripts', | |
array( $this, 'admin_enqueue_styles' ) | |
); | |
add_filter( | |
'parent_file', | |
array( $this, 'highlight_scheduled_submenu' ) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment