Which capabilities are available in Gravity Forms Salesforce plugin? [closed]

Found the capabilities, most are self explanatory. <?php array( ‘vxg_salesforce_read_feeds’ => true, ‘vxg_salesforce_edit_feeds’ => true, ‘vxg_salesforce_read_logs’ => true, ‘vxg_salesforce_export_logs’ => true, ‘vxg_salesforce_read_settings’ => true, ‘vxg_salesforce_edit_settings’ => true, ‘vxg_salesforce_send_to_crm’ => true, ‘vxg_salesforce_read_license’ => true, ‘vxg_salesforce_uninstall’ => true, ); ?>

Use PHP code to create custom user roles. Call it once?

Generally, you would call this code in a plugin activation hook or at the very least, init. The issue you may run into is calling this code too early if it’s outside any specific WordPress hooks which would cause issues. That being said, add_role() calls WP_Roles::add_role() and one of the first things it does is … Read more

Hiding custom theme functionality using capabilities

If what you want to do is to hide the menu items you can make use of remove_menu_page and remove_submenu_page by hooking into admin_menu. In order to hide certain links based on the user’s role (in your case, Editor): function custom_remove_menus(){ // Get current user’s data $current_user = wp_get_current_user(); $user_id = $current_user->ID; // Check user’s … Read more

Custom wordpress admin page/url “You do not have sufficient permissions to access this page.”

This is what you need: function my_special_function(){ ?> <div class=”wrap”> <h2>Hello World</h2> <!– ALL THE CUSTOM MARK UP SHOULD BE INSIDE WRAP–> </div> <?php } function my_menu_page(){ add_menu_page(‘Page title’, ‘Menu Title’, ‘administrator’, ‘page_slug’, ‘my_special_function’); } add_action(‘admin_menu’, ‘my_menu_page’); Try this!

List users of an array of roles

Unfortunately, you cannot pass an Array of User Roles to WP_User_Query. The role argument only accepts a String, which is then cleared by a trim command. See user.php on Line 495, where prepare handles the Query for the Constructor after parsing the $args.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)