WP_Customize_Manager::settings PHP Method

settings() public method

Get the registered settings.
Since: 3.4.0
public settings ( ) : array
return array
    public function settings()
    {
        return $this->settings;
    }

Usage Example

Exemplo n.º 1
0
 public function reset_customizer()
 {
     $settings = $this->wp_customize->settings();
     // remove theme_mod settings registered in customizer
     foreach ($settings as $setting) {
         if ('theme_mod' == $setting->type) {
             remove_theme_mod($setting->id);
         }
         if ('option' == $setting->type) {
             global $igthemes_option;
             delete_option($igthemes_option);
         }
     }
 }
All Usage Examples Of WP_Customize_Manager::settings
WP_Customize_Manager