wpcf7_admin_has_edit_cap

The Contact Form 7 wpcf7 admin has edit cap function.

Description

wpcf7_admin_has_edit_cap(); 

Usage

  1. if ( !function_exists( 'wpcf7_admin_has_edit_cap' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/admin/includes/admin-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcf7_admin_has_edit_cap(); 
  7.  

Defined (1)

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

/admin/includes/admin-functions.php  
  1. function wpcf7_admin_has_edit_cap() { 
  2. return current_user_can( 'wpcf7_edit_contact_forms' );