Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Hide certain CF7 forms via PostID › Reply To: Hide certain CF7 forms via PostID
Current URE Pro version does not support edit restrictions for CF7 plugin.
CF7 uses custom UI page to show forms list. URE Pro simply does not apply edit restrictions for the page ‘admin.php?page=wpcf7’.
More, CF7 uses meta capabilities:
$meta_caps = array( 'wpcf7_edit_contact_form' => WPCF7_ADMIN_READ_WRITE_CAPABILITY, 'wpcf7_edit_contact_forms' => WPCF7_ADMIN_READ_WRITE_CAPABILITY, 'wpcf7_read_contact_form' => WPCF7_ADMIN_READ_CAPABILITY, 'wpcf7_read_contact_forms' => WPCF7_ADMIN_READ_CAPABILITY, 'wpcf7_delete_contact_form' => WPCF7_ADMIN_READ_WRITE_CAPABILITY, 'wpcf7_delete_contact_forms' => WPCF7_ADMIN_READ_WRITE_CAPABILITY, 'wpcf7_manage_integration' => 'manage_options', 'wpcf7_submit' => 'read', );
And while really it needs to check ‘publish_pages’ instead of ‘wpcf7_edit_contact_forms’, WordPress function ‘user_can’ used by URE Pro check directly ‘wpcf7_edit_contact_forms’. So solutions is not so easy. I will try to search workaround.