source/php/Options.php
public function save()
    {
        if (!$this->isValidPostSave()) {
            return;
        }

        // Get the options
        global $modularityOptions;
        $modularityOptions = (isset($_POST['modularity-options'])) ? $_POST['modularity-options'] : array();

        // Update the options
        update_option($this->slug, $modularityOptions);

        do_action('Modularity/Options/Save');

        // All done, send notice
        $this->notice(__('Options saved successfully', 'modularity'), ['updated']);
    }
public function save()
    {
        if (!$this->isValidPostSave()) {
            return;
        }

        // Get the options
        global $modularityOptions;
        $modularityOptions = (isset($_POST['modularity-options'])) ? $_POST['modularity-options'] : array();

        // Update the options
        update_option($this->slug, $modularityOptions);

        do_action('Modularity/Options/Save');

        // All done, send notice
        $this->notice(__('Options saved successfully', 'modularity'), ['updated']);
    }
public function save ( ) { if ( ! $ this -> isValidPostSave ( ) ) { return ; } // Get the options global $ modularityOptions ; $ modularityOptions = ( isset ( $ _POST [ 'modularity-options' ] ) ) ? $ _POST [ 'modularity-options' ] : array ( ) ; // Update the options update_option ( $ this -> slug , $ modularityOptions ) ; do_action ( 'Modularity/Options/Save' ) ; // All done, send notice $ this -> notice ( __ ( 'Options saved successfully' , 'modularity' ) , [ 'updated' ] ) ; }
Saves the options
@return void
Saves the options