Exemple #1
0
/**
 * Finalize scheme for the active theme
 *
 * @package Infinity-api
 * @return boolean
 */
function infinity_scheme_finalize()
{
    // finalize registries
    Infinity_Sections_Policy::instance()->registry()->finalize();
    Infinity_Options_Policy::instance()->registry()->finalize();
    Infinity_Features_Policy::instance()->registry()->finalize();
    Infinity_Screens_Policy::instance()->registry()->finalize();
    Infinity_Widgets_Policy::instance()->registry()->finalize();
    Infinity_Shortcodes_Policy::instance()->registry()->finalize();
    return true;
}
Exemple #2
0
 /**
  * Set up form handler
  *
  * @internal
  * @return void
  */
 public static function init_form_processing()
 {
     if (empty($_POST[Infinity_Options_Renderer::FIELD_MANIFEST])) {
         return;
     }
     // add form processing
     if (defined('DOING_AJAX')) {
         add_action('nxt_ajax_infinity_options_update', array(Infinity_Options_Policy::instance()->registry(), 'process_form_ajax'));
     } else {
         add_action('load-appearance_page_' . INFINITY_ADMIN_PAGE, array(Infinity_Options_Policy::instance()->registry(), 'process_form'));
     }
 }