wpcf7_admin_has_edit_cap
The Contact Form 7 wpcf7 admin has edit cap function.
Description
wpcf7_admin_has_edit_cap();
Usage
if ( !function_exists( 'wpcf7_admin_has_edit_cap' ) ) { require_once ABSPATH . PLUGINDIR . 'contact-form-7/admin/includes/admin-functions.php'; } // NOTICE! Understand what this does before running. $result = wpcf7_admin_has_edit_cap();
Defined (1)
The function is defined in the following location(s).
- /admin/includes/admin-functions.php
- function wpcf7_admin_has_edit_cap() {
- return current_user_can( 'wpcf7_edit_contact_forms' );
- }