ninja_forms_form_title_class
The Ninja Forms ninja forms form title class hook.
Description
Parameters (2)
- 0. $title_class (unknown)
- The title class.
- 1. $form_id (unknown)
- The form id.
Usage
- To run the hook, copy the example below.
- $title_class = apply_filters( 'ninja_forms_form_title_class', $title_class, $form_id );
- if ( !empty( $title_class ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the ninja_forms_form_title_class callback
- function filter_ninja_forms_form_title_class( $title_class, $form_id ) {
- // make filter magic happen here...
- return $title_class;
- };
- // add the filter
- add_filter( 'ninja_forms_form_title_class', 'filter_ninja_forms_form_title_class', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'ninja_forms_form_title_class', 'filter_ninja_forms_form_title_class', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /deprecated/includes/display/form/form-title.php
- $title_class = apply_filters( 'ninja_forms_form_title_class', $title_class, $form_id );