wpcf7_map_meta_cap

wpcf7_map_meta_cap

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: contact-form-7.6.0

apply_filters('wpcf7_map_meta_cap') is found 1 times:

  • /includes/capabilities.php line 17
    		'wpcf7_manage_integration' => 'manage_options',
    		'wpcf7_submit' => 'read',
    	);
    
    	$meta_caps = apply_filters( 'wpcf7_map_meta_cap', $meta_caps );
    
    	$caps = array_diff( $caps, array_keys( $meta_caps ) );
    
    	if ( isset( $meta_caps[$cap] ) ) {
    		$caps[] = $meta_caps[$cap];
    	}