add_filter( ‘charitable_default_donation_fields’, ‘charitable_filter_countries_donation_form’, 10, 1 ); function charitable_filter_countries_donation_form( $donation_fields = array() ) { if ( empty( $donation_fields[‘country’][‘donation_form’][‘options’] ) ) { return $donation_fields; } $countries_for_donation_form = $donation_fields[‘country’][‘donation_form’][‘options’]; // you can remove a country. unset( $countries_for_donation_form[‘CA’] ); // ..or you can create…Continue reading
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://www.benefitscore.org/wp-content/uploads/2024/10/512×512-file-favi.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…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
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