pods_form_ui_field_wysiwyg_self_<type>_editor<options>
The Pods - Custom Content Types and Fields pods form ui field wysiwyg self type editor options hook.
Description
Parameters (5)
- 0. $name (string)
- The name.
- 1. $value (unknown)
- The value.
- 2. $options (unknown)
- The options.
- 3. $pod (unknown)
- The
pod
. - 4. $id (unknown)
- The id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'pods_form_ui_field_wysiwyg_self_{$type}_editor{$options}', $name, $value, $options, $pod, $id );
- The following example is for adding a hook callback.
- // define the pods_form_ui_field_wysiwyg_self_<type>_editor<options> callback
- function action_pods_form_ui_field_wysiwyg_self_type_editoroptions( $name, $value, $options, $pod, $id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "pods_form_ui_field_wysiwyg_self_{$type}_editor{$options}", 'action_pods_form_ui_field_wysiwyg_self_type_editoroptions', 10, 5 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "pods_form_ui_field_wysiwyg_self_{$type}_editor{$options}", 'action_pods_form_ui_field_wysiwyg_self_type_editoroptions', 10, 5 );
Defined (1)
The action is defined in the following location(s).
- /classes/fields/wysiwyg.php
- do_action( 'pods_form_ui_field_wysiwyg_' . pods_var( self::$type . '_editor', $options ), $name, $value, $options, $pod, $id );