settings_text_field

The WordPress Core settings text field hook.

Description

do_action( 'settings_text_field', (string) $name, (unknown) $element ); 

Parameters (2)

0. $name (string)
The name.
1. $element (unknown)
The element.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'settings_text_field', $name, $element ); 
The following example is for adding a hook callback.
  1. // define the settings_text_field callback 
  2. function action_settings_text_field( $name, $element ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'settings_text_field', 'action_settings_text_field', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'settings_text_field', 'action_settings_text_field', 10, 2 ); 

Defined (2)

The action is defined in the following location(s).

/admin/class-woogool-admin-settings.php  
  1. <?php do_action( 'settings_text_field', $name, $element ); ?> 
/wogol.php  
  1. add_action( 'settings_text_field', array( $this, 'settings_text_field' ), 10, 2 );