setup_hooks(); } /** * To setup action/filter. * * @return void */ protected function setup_hooks() { add_filter( 'get_available_theme_settings', [ $this, 'update_resources' ],10, 2 ); } /** * Function to update the dynamic optins and resource for theme. * * @since 2.0.0 * @return array */ public function update_resources( $options, $theme_name ) { if ( 'Simple red theme' == $theme_name ) { $options['menu_title_image'] = RMP_PLUGIN_URL_V4 . '/themes/simple-red-free/person.png'; } return $options; } } //Initiate the theme object. Simple_Red_Theme::get_instance();