wpcf7_admin_menu_change_notice

The contact-form-7 wpcf7 admin menu change notice hook.

Published Date - July 22, 2023

Description

$counts = apply_filters( 'wpcf7_admin_menu_change_notice',
		array(
			'wpcf7' => 0,
			'wpcf7-new' => 0,
			'wpcf7-integration' => 0,
		)
	);

Parameters

  1. $array


Usage

The following example is for adding a hook callback.

// define the wpcf7_admin_menu_change_notice callback 
function custom_wpcf7_admin_menu_change_notice( $array ){ 
   //custom code here
    return $array
} 

//add the action 
add_filter('wpcf7_admin_menu_change_notice', 'custom_wpcf7_admin_menu_change_notice', 10, 1)

Defined

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

contact-form-7/admin/admin.php

$counts = apply_filters( 'wpcf7_admin_menu_change_notice',
		array(
			'wpcf7' => 0,
			'wpcf7-new' => 0,
			'wpcf7-integration' => 0,
		)
	);