Browse Source

gf capabilities

windhamdavid 5 months ago
parent
commit
271599f1ea
1 changed files with 11 additions and 0 deletions
  1. 11 0
      functions.php

+ 11 - 0
functions.php

@@ -11,6 +11,17 @@ function gwp24_styles() {
 add_action( 'wp_enqueue_scripts', 'gwp24_styles' );
 
 
+/***********************************************************
+######################## GForms ############################
+************************************************************/
+
+function gwp24_add_gf_capabilities(){
+  $role = get_role( 'editor' );
+  $role->add_cap( 'gform_full_access' );
+}
+add_action( 'admin_init', 'gwp24_add_gf_capabilities' );
+
+
 /***********************************************************
 ###################### BrowserSync #########################
 ************************************************************/