_nf_removed_hooks

The Ninja Forms nf removed hooks function.

Description

_nf_removed_hooks(); 

Usage

  1. if ( !function_exists( '_nf_removed_hooks' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/includes/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _nf_removed_hooks(); 
  7.  

Defined (1)

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

/includes/deprecated.php  
  1. function _nf_removed_hooks() { 
  2. global $wp_filter; 
  3.  
  4. $hooks = array( 
  5. /** Removed Action Hooks */ 
  6. 'nf_email_notification_after_settings',  
  7. 'nf_edit_notification_settings',  
  8. 'ninja_forms_edit_field_before_li',  
  9. 'ninja_forms_edit_field_after_li',  
  10. 'ninja_forms_edit_field_before_closing_li',  
  11. 'ninja_forms_edit_field_before_registered',  
  12. // 'nf_edit_field_*',  
  13. 'ninja_forms_edit_field_after_registered',  
  14. 'ninja_forms_edit_field_before_ul',  
  15. 'ninja_forms_edit_field_ul',  
  16. 'ninja_forms_edit_field_after_ul',  
  17. 'ninja_forms_display_before_field_label',  
  18. 'ninja_forms_display_after_field_label',  
  19. 'nf_before_display_loading',  
  20. 'nf_notification_before_process',  
  21. 'nf_save_notification',  
  22. 'nf_sub_table_after_row_actions_trash',  
  23. 'nf_sub_table_after_row_actions',  
  24. 'nf_sub_table_before_row_actions_trash',  
  25. 'nf_sub_table_before_row_actions',  
  26. 'ninja_forms_after_import_form',  
  27. 'ninja_forms_display_after_closing_field_wrap',  
  28. 'ninja_forms_display_after_field_function',  
  29. 'ninja_forms_display_after_field_label',  
  30. 'ninja_forms_display_after_field',  
  31. 'ninja_forms_display_after_opening_field_wrap',  
  32. 'ninja_forms_display_before_closing_field_wrap',  
  33. 'ninja_forms_display_before_field_function',  
  34. 'ninja_forms_display_before_field_label',  
  35. 'ninja_forms_display_before_field',  
  36. 'ninja_forms_display_before_opening_field_wrap',  
  37. 'ninja_forms_save_admin_metabox_option',  
  38. 'ninja_forms_save_admin_metabox',  
  39. 'ninja_forms_save_admin_sidebar',  
  40. 'ninja_forms_save_admin_tab',  
  41. 'ninja_forms_before_pre_process',  
  42. 'ninja_forms_display_after_fields',  
  43. 'ninja_forms_display_after_form_title',  
  44. 'ninja_forms_display_after_form_wrap',  
  45. 'ninja_forms_display_after_open_form_tag',  
  46. 'ninja_forms_display_before_fields',  
  47. 'ninja_forms_display_before_form_title',  
  48. 'ninja_forms_display_before_form_wrap',  
  49. 'ninja_forms_display_before_form',  
  50.  
  51. /** Removed Filter Hooks */ 
  52. 'nf_export_form_row',  
  53. 'nf_notification_admin_js_vars',  
  54. 'nf_success_message_locations',  
  55. 'nf_notification_types',  
  56. 'ninja_forms_admin_submissions_datepicker_args',  
  57. 'ninja_forms_starter_form_contents',  
  58. 'ninja_forms_preview_page_title',  
  59. 'nf_input_limit_types',  
  60. 'ninja_forms_edit_field_li_label',  
  61. 'nf_edit_field_settings_sections',  
  62. 'ninja_forms_use_post_fields',  
  63. 'nf_general_settings_advanced',  
  64. 'nf_new_form_defaults',  
  65. 'ninja_forms_use_post_fields',  
  66. 'ninja_forms_form_settings_basic',  
  67. 'ninja_forms_form_settings_restrictions',  
  68. 'nf_upgrade_handler_register',  
  69. 'ninja_forms_export_subs_csv_file_name',  
  70. 'ninja_forms_export_sub_label',  
  71. 'ninja_forms_export_subs_label_array',  
  72. 'ninja_forms_export_sub_pre_value',  
  73. 'ninja_forms_export_sub_value',  
  74. 'ninja_forms_export_subs_value_array',  
  75. 'ninja_forms_csv_bom',  
  76. 'ninja_forms_csv_delimiter',  
  77. 'ninja_forms_csv_enclosure',  
  78. 'ninja_forms_csv_terminator',  
  79. 'ninja_forms_sub_table_row_actions',  
  80. 'ninja_forms_csv_delimiter',  
  81. 'ninja_forms_csv_enclosure',  
  82. 'ninja_forms_csv_terminator',  
  83. 'ninja_forms_admin_menu_capabilities',  
  84. 'ninja_forms_email_all_fields_array',  
  85. 'nf_email_user_values_title',  
  86. 'ninja_forms_email_field_label',  
  87. 'ninja_forms_email_user_value',  
  88. 'ninja_forms_email_field_list',  
  89. 'ninja_forms_admin_email_message_wpautop',  
  90. 'ninja_forms_admin_email_from',  
  91. 'ninja_forms_user_email_message_wpautop',  
  92. 'ninja_forms_submission_csv_name',  
  93. 'ninja_forms_success_msg',  
  94. 'nf_delete_form_capabilities',  
  95. 'ninja_forms_field',  
  96. 'ninja_forms_use_post_fields',  
  97. 'ninja_forms_list_terms',  
  98. 'ninja_forms_display_form_form_data',  
  99. 'ninja_forms_admin_subject',  
  100. 'ninja_forms_user_subject',  
  101. 'ninja_forms_admin_email',  
  102. 'ninja_forms_user_email',  
  103. 'ninja_forms_save_msg',  
  104. 'ninja_forms_display_script_field_data',  
  105. 'ninja_forms_display_form_form_data',  
  106. 'ninja_forms_enable_credit_card_field',  
  107. 'ninja_forms_post_credit_card_field',  
  108. 'ninja_forms_credit_card_field_desc_pos',  
  109. 'ninja_forms_hide_cc_field',  
  110. 'ninja_forms_display_list_options_span_class',  
  111. 'nf_import_notification_meta',  
  112. 'ninja_forms_labels/timed_submit_error',  
  113. 'ninja_forms_form_list_template_function',  
  114. 'nf_all_fields_field_value',  
  115. 'nf_all_fields_table',  
  116. 'nf_before_import_field',  
  117. 'nf_delete_field_capabilities',  
  118. 'nf_download_all_filename',  
  119. 'nf_email_notification_attachment_types',  
  120. 'nf_email_notification_attachments',  
  121. 'nf_email_notification_process_setting',  
  122. 'nf_general_settings_recaptcha',  
  123. 'nf_new_field_capabilities',  
  124. 'nf_notification_process_setting',  
  125. 'nf_step_processing_labels',  
  126. 'nf_sub_csv_bom',  
  127. 'nf_sub_edit_status',  
  128. 'nf_sub_human_time',  
  129. 'nf_sub_table_row_actions',  
  130. 'nf_sub_table_status',  
  131. 'nf_sub_table_user_value_max_items',  
  132. 'nf_sub_table_user_value_max_len',  
  133. 'nf_sub_title_time',  
  134. 'nf_subs_csv_field_label',  
  135. 'nf_subs_csv_filename',  
  136. 'nf_subs_csv_label_array_before_fields',  
  137. 'nf_subs_csv_value_array',  
  138. 'nf_subs_export_pre_value',  
  139. 'nf_subs_table_qv',  
  140. 'nf_success_msg',  
  141. 'ninja_forms_admin_email_message_wpautop',  
  142. 'ninja_forms_admin_metabox_rte',  
  143. 'ninja_forms_ajax_url',  
  144. 'ninja_forms_before_import_form',  
  145. 'ninja_forms_cont_class',  
  146. 'ninja_forms_credit_card_cvc_desc',  
  147. 'ninja_forms_credit_card_cvc_label',  
  148. 'ninja_forms_credit_card_exp_month_desc',  
  149. 'ninja_forms_credit_card_exp_month_label',  
  150. 'ninja_forms_credit_card_exp_year_desc',  
  151. 'ninja_forms_credit_card_exp_year_label',  
  152. 'ninja_forms_credit_card_name_desc',  
  153. 'ninja_forms_credit_card_name_label',  
  154. 'ninja_forms_credit_card_number_desc',  
  155. 'ninja_forms_display_field_class',  
  156. 'ninja_forms_display_field_desc_class',  
  157. 'ninja_forms_display_field_processing_error_class',  
  158. 'ninja_forms_display_fields_wrap_visibility',  
  159. 'ninja_forms_display_required_items_class',  
  160. 'ninja_forms_display_response_message_class',  
  161. 'ninja_forms_display_show_form',  
  162. 'ninja_forms_dropdown_open_tag',  
  163. 'ninja_forms_dropdown_placeholder',  
  164. 'ninja_forms_edit_field_rte',  
  165. 'ninja_forms_field_post_process_user_value',  
  166. 'ninja_forms_field_pre_process_user_value',  
  167. 'ninja_forms_field_process_user_value',  
  168. 'ninja_forms_field_wrap_class',  
  169. 'ninja_forms_fields_wrap_class',  
  170. 'ninja_forms_form_class',  
  171. 'ninja_forms_form_list_forms',  
  172. 'ninja_forms_form_wrap_class',  
  173. 'ninja_forms_label_class',  
  174. 'ninja_forms_labels/currency_symbol',  
  175. 'ninja_forms_labels/date_format',  
  176. 'ninja_forms_labels/honeypot_error',  
  177. 'ninja_forms_labels/invalid_email',  
  178. 'ninja_forms_labels/javascript_error',  
  179. 'ninja_forms_labels/password_mismatch',  
  180. 'ninja_forms_labels/process_label',  
  181. 'ninja_forms_labels/req_div_label',  
  182. 'ninja_forms_labels/req_error_label',  
  183. 'ninja_forms_labels/req_field_error',  
  184. 'ninja_forms_labels/req_field_symbol',  
  185. 'ninja_forms_labels/spam_error',  
  186. 'ninja_forms_display_fields_array',  
  187.  
  188. ); 
  189.  
  190. foreach( $hooks as $hook ) { 
  191. apply_filters( $hook, '' ); // add_action() is just a wrapper for add_filter(), so use add_filter() for both. 
  192. if( ! isset( $wp_filter[ $hook ] ) || ! $wp_filter[ $hook ] ) continue; 
  193. Ninja_Forms::deprecated_notice( $hook, '3.0', null );