Gravity Forms Convention Registration Add Roles

add_action( ‘gform_user_updated’, ‘add_additional_roles’, 10, 4 ); function add_additional_roles( $user_id, $feed, $entry, $user_pass ) { if ( rgar( $entry, ‘form_id’ ) != 1 ) { return; } $user = new WP_User( $user_id ); $selected_role_array = explode( ‘|’, rgar( $entry, ’46’ )…Continue reading

ADMIN – Edit users permissions

// Sets permissions for site admins to edit users function artprize_admin_users_caps( $caps, $cap, $user_id, $args ) { foreach ( $caps as $key => $capability ) { if ( $capability != ‘do_not_allow’ ) { continue; } switch ( $cap ) {…Continue reading

DIR_SYNC_WPCODE – WPCode Snippets Sync Engine

/** * WPCode Snippet: WPCode Snippets Sync Engine * Description: Synchronizes WPCode snippets FROM wpcode CPT TO wpcode_snippets_sync CPT * Location: Run Everywhere * Priority: 20 * * INSTALL ORDER: #3 – Install after ACF fields are registered * *…Continue reading