* Hook into WordPress and run things. * * @return void */
()
| 148 | * @return void |
| 149 | */ |
| 150 | private function hooks() { |
| 151 | |
| 152 | add_action( 'admin_menu', array( $this, 'add_settings_page' ), apply_filters( $this->func . '_admin_menu_priority', 10 ) ); |
| 153 | add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) ); |
| 154 | add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 100 ); |
| 155 | add_action( 'rest_api_init', array( $this, 'register_rest_controller' ) ); |
| 156 | |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Register the WP API controller for the options panel. |