ninja_forms_dropdown_placeholder

The Ninja Forms ninja forms dropdown placeholder hook.

Description

apply_filters( 'ninja_forms_dropdown_placeholder', (unknown) $select_placeholder, (unknown) $label, (unknown) $label_pos, (unknown) $field_id, (unknown) $field_class, (unknown) $data, (unknown) $ninja_forms_fields, (unknown) $options ); 

Parameters (8)

0. $select_placeholder (unknown)
The select placeholder.
1. $label (unknown)
The label.
2. $label_pos (unknown)
The label pos.
3. $field_id (unknown)
The field id.
4. $field_class (unknown)
The field class.
5. $data (unknown)
The data.
6. $ninja_forms_fields (unknown)
The ninja forms fields.
7. $options (unknown)
The options.

Usage

To run the hook, copy the example below.
  1. $select_placeholder = apply_filters( 'ninja_forms_dropdown_placeholder', $select_placeholder, $label, $label_pos, $field_id, $field_class, $data, $ninja_forms_fields, $options ); 
  2.  
  3. if ( !empty( $select_placeholder ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ninja_forms_dropdown_placeholder callback 
  2. function filter_ninja_forms_dropdown_placeholder( $select_placeholder, $label, $label_pos, $field_id, $field_class, $data, $ninja_forms_fields, $options ) { 
  3. // make filter magic happen here... 
  4. return $select_placeholder
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_dropdown_placeholder', 'filter_ninja_forms_dropdown_placeholder', 10, 8 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_dropdown_placeholder', 'filter_ninja_forms_dropdown_placeholder', 10, 8 ); 

Defined (1)

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

/deprecated/includes/fields/list.php  
  1. echo apply_filters( 'ninja_forms_dropdown_placeholder', $select_placeholder, $label, $label_pos, $field_id, $field_class, $data, $ninja_forms_fields, $options );