Archives

WordPress Hooks

Plugin Settings

Plugin Settings Type: Filter Tag: ninja_forms_plugin_settings Arguments array $settings Plugin Settings Groups Type: Filter Tag: ninja_forms_plugin_settings_groups Arguments array $groups Check Setting’s Value Type: Filter Tag: ninja_forms_check_setting_{$setting_id} Arguments array $setting Update Setting’s Value Type: Filter Tag: ninja_forms_update_setting_{$setting_id} Arguments array $setting Save Setting Value …

Continue reading

Field Templates

File Paths Tag: ninja_forms_field_template_file_paths <?php add_filter( 'ninja_forms_field_template_file_paths', 'my_custom_file_path' ); function my_custom_file_path( $paths ){ $paths[] = dir( __FILE__ ); return $paths; } view raw nf3_field_templates_filter.php hosted with ❤ by GitHub Arguments array $file_paths Hierarchy ‘plugins/ninja-forms/includes/Templates’ ‘{theme_dir}/ninja-forms/templates/’ Custom Filtered Paths Custom Templates Tag: …

Continue reading

Field Value

Render Default Value Example: add_filter( ‘ninja_forms_render_default_value’, ‘callback’, 10, 3 ); Arguments: string $default_value obj $field_class array $field_settings For List Field Types, the default selected options need to be marked specifically. add_filter( ‘ninja_forms_render_options’, ‘callback’, 10, 2 ); add_filter( ‘ninja_forms_render_options_{$type}, ‘callback’, 10, 2 …

Continue reading

Field Display

Before Field Type ninja_forms_display_before_field_type_* Examples: add_filter( ‘ninja_forms_display_before_field_type_textbox’, 10, 1 ); Arguments: Obj $field Before Field Key ninja_forms_display_before_field_key_* Examples: add_filter( ‘ninja_forms_display_before_field_key_user-email’, 10, 1 ); Arguments: Obj $field After Field Type ninja_forms_display_after_field_type_* Examples: add_filter( ‘ninja_forms_display_after_field_type_textbox’, 10, 1 ); Arguments: Obj $field After Field Key …

Continue reading

Form Display

Before Form Example: add_filter( ‘ninja_forms_display_before_form’, 10, 2 ); Arguments: int $form_id bool $is_preview Before Fields Example: add_filter( ‘ninja_forms_display_before_fields’, 10, 2 ); Arguments: int $form_id bool $is_preview After Fields Example: add_filter( ‘ninja_forms_display_after_fields’, 10, 2 ); Arguments: int $form_id bool $is_preview After …

Continue reading