[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