function nvl_create_call_center_role() { // Rimuove il ruolo per cancellare eventuali vecchie capabilities (salvate in wp_options) //remove_role(‘nvl_call_center’); // Aggiungi un nuovo ruolo chiamato “NVL: Call Center” add_role( ‘nvl_call_center’, __(‘NVL: Call Center’, ‘textdomain’), array( //’read’ => true, // Permette di accedere alla…Continue reading
function nvl_create_call_center_role() { // Rimuove il ruolo per cancellare eventuali vecchie capabilities (salvate in wp_options) //remove_role(‘nvl_call_center’); // Aggiungi un nuovo ruolo chiamato “NVL: Call Center” add_role( ‘nvl_call_center’, __(‘NVL: Call Center’, ‘textdomain’), array( //’read’ => true, // Permette di accedere alla…Continue reading
/** * Purpose: This code dynamically adds an FAQ repeater field to two different forms (Form IDs 3 and 5) * within Gravity Forms. It allows for the creation of a set of “Frequently Asked Questions” fields * (question and…Continue reading
/** * This code adds a video repeater field to specific Gravity Forms (IDs 3 and 5), pre-populates it with data from * ACF fields related to vendors or venues, and saves the submitted video gallery data back to the…Continue reading
/** * This code adds a video repeater field to specific Gravity Forms (IDs 3 and 10), pre-populates it with data from * ACF fields related to vendors or venues, and saves the submitted video gallery data back to the…Continue reading
/** * This code adds a video repeater field to specific Gravity Forms (IDs 3 and 10), pre-populates it with data from * ACF fields related to vendors or venues, and saves the submitted video gallery data back to the…Continue reading
/** * * Retrieve post ID by user ID and post type (either ‘vendor’ or ‘venue’). * * @param int $user_id The current user’s ID. * @param string $post_type The post type to search for (‘vendor’ or ‘venue’). * @return…Continue reading
/** * * Retrieve post ID by user ID and post type (either ‘vendor’ or ‘venue’). * * @param int $user_id The current user’s ID. * @param string $post_type The post type to search for (‘vendor’ or ‘venue’). * @return…Continue reading
/** * Conditionally show the submit button * * @link https://wpforms.com/developers/how-to-conditionally-show-the-submit-button/ */ add_action( ‘wp_head’, function () { ?>Continue reading
remove_action(‘woocommerce_single_product_summary’,’woocommerce_template_single_meta’,40);Continue reading