Skip to content

Instantly share code, notes, and snippets.

@dovy
Last active December 28, 2015 03:49
Show Gist options
  • Save dovy/7437811 to your computer and use it in GitHub Desktop.
Save dovy/7437811 to your computer and use it in GitHub Desktop.
  • Sections
  • apply_filters('redux-sections',$sections);
  • apply_filters('redux/options/'.$this->args['opt_name'].'/sections',$sections);
  • Local (Internationalization)
  • apply_filters( 'redux/textdomain/'.$this->args['opt_name'], get_locale(), $domain );
  • Wordpress Data
  • apply_filters( 'redux/options/'.$this->args['opt_name'].'/wordpress_data/'.$type.'/', $data );
  • apply_filters( 'redux/options/'.$this->args['opt_name'].'/data/'.$type, $data );
  • Font Icons
  • apply_filters('redux-font-icons',array());
  • apply_filters('redux/font-icons',array());
  • Defaults
  • apply_filters( 'redux/options/'.$this->args['opt_name'].'/defaults', $this->options_defaults );
  • Arguments
  • apply_filters( 'redux-args-'.$this->args['opt_name'], $this->args );
  • apply_filters( 'redux/options/'.$this->args['opt_name'].'/args', $this->args );
  • Sections
  • apply_filters( 'redux-sections-' . $this->args['opt_name'], $this->sections );
  • apply_filters( 'redux/options/' . $this->args['opt_name'].'/sections', $this->sections );
  • Field Class (Overload the Field Class before it gets included)
  • apply_filters( 'redux/field/class/'.$field['type'], self::$dir . 'inc/fields/' . $field['type'] . '/field_' . $field['type'] . '.php', $field );
  • jQueryUI Theme
  • apply_filters( 'redux/page/'.$this->opt_name.'/enqueue/jquery-ui-css', self::$url . 'assets/css/vendor/jquery-ui-bootstrap/jquery-ui-1.10.0.custom.css' )
  • Single Section Modifier
  • apply_filters( 'redux-section-' . $k . '-modifier-' . $this->args['opt_name'], $section );
  • apply_filters( 'redux/options/'.$this->args['opt_name'].'/section/' . $section['id'] , $section );
  • Filter a single field's setting by ID
  • apply_filters( 'redux-field-' . $field['id'] . 'modifier-' . $this->args['opt_name'], $field );
  • apply_filters( 'redux/options/' . $this->args['opt_name'].'/field/' . $field['id'], $field );
  • Extensions, include your own from another directory
  • apply_filters( 'redux-extensionclass-load', $this->path . 'extensions/' . $folder . '/extension_' . $folder . '.php', $extension_class );
  • apply_filters( 'redux/extension/'.$this->args['opt_name'].'/'.$folder, $this->path . 'extensions/' . $folder . '/extension_' . $folder . '.php', $extension_class );
  • Validation Class (Overload the Validation Class before it gets included)
  • apply_filters( 'redux-validateclass-load', self::$dir . 'inc/validation/' . $field['validate'] . '/validation_' . $field['validate'] . '.php', $validate );
  • apply_filters( 'redux/validate/'$this->args['opt_name'].'/class/'.$field['validate'], self::$dir . 'inc/validation/' . $field['validate'] . '/validation_' . $field['validate'] . '.php', $validate );
  • Hook fired at every save
  • do_action( 'redux-saved-' . $this->args['opt_name'] , $value );
  • do_action( 'redux/options/'.$this->args['opt_name'].'/saved', $value );
  • Hook fired on the options page enqueue
  • do_action( 'redux-enqueue-' . $this->args['opt_name'] );
  • do_action( 'redux/page/' . $this->args['opt_name'] . '/enqueue' );
  • Hook fired at options page load
  • do_action( 'redux-load-page-' . $this->args['opt_name'], $screen );
  • do_action( 'redux/page/' . $this->args['opt_name'] . '/load' , $screen );
  • Head of the options page
  • do_action( 'redux-admin-head-' . $this->args['opt_name'], $this );
  • do_action( 'redux/page/' . $this->args['opt_name'] . '/header', $this );
  • Option registration
  • do_action( 'redux-register-settings-' . $this->args['opt_name'] );
  • do_action( 'redux/options/'.$this->args['opt_name'].'/register', $this->sections);
  • Compiler field has been changed, init compiler.
  • do_action( 'redux-compiler-' . $this->args['opt_name'], $this->options );
  • do_action( 'redux/options/' . $this->args['opt_name'] . '/compiler', $this->options );
  • Register extensions
  • do_action( 'redux-register-extensions-' . $this->args['opt_name'], $this );
  • do_action( 'redux/extensions/'.$this->args['opt_name'], $this );
  • Validate options
  • do_action_ref_array('redux-validate-' . $this->args['opt_name'], array(&$plugin_options, $this->options));
  • do_action_ref_array('redux/options/' . $this->args['opt_name'].'/validate', array(&$plugin_options, $this->options));
  • Before the Options Page form
  • do_action( 'redux-page-before-form-' . $this->args['opt_name'] );
  • do_action( 'redux/page/'.$this->args['opt_name'].'/form/before', $this );
  • After the Options Page Menu
  • do_action( 'redux-page-after-sections-menu-' . $this->args['opt_name'], $this );
  • do_action( 'redux/page/'.$this->args['opt_name'].'/menu/after', $this );
  • After the Options Page Sections
  • do_action( 'redux/page-after-sections-' . $this->args['opt_name'], $this );
  • do_action( 'redux/page/'.$this->args['opt_name'].'/sections/after', $this );
  • After the Options Page form
  • do_action( 'redux-page-after-form-' . $this->args['opt_name'] );
  • do_action( 'redux/page/'.$this->args['opt_name'].'/form/after', $this );
  • Before field callback
  • do_action( 'redux-before-field-' . $this->args['opt_name'], $field, $value );
  • do_action( 'redux/field/'.$this->args['opt_name'].'/'.$field['type'].'/callback/before', $field, $value );
  • After field callback
  • do_action( 'redux-after-field-' . $this->args['opt_name'], $field, $value );
  • do_action( 'redux/field/'.$this->args['opt_name'].'/'.$field['type'].'/callback/before', $field, $value );
  • Before field callback
  • do_action( 'redux-before-field-' . $this->args['opt_name'], $field, $value );
  • do_action( 'redux/field/'.$this->args['opt_name'].'/'.$field['type'].'/render/before', $field, $value );
  • Before Field Fieldset
  • do_action( 'redux/field/'.$this->args['opt_name'].'/'.$field['type'].'/fieldset/before/' . $this->args['opt_name'], $field, $value );
  • After Field Fieldset
  • do_action( 'redux-after-field-' . $this->args['opt_name'], $field, $value );
  • do_action( 'redux/field/'.$this->args['opt_name'].'/'.$field['type'].'/fieldset/after/' . $this->args['opt_name'], $field, $value );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment