// functions.php of via Code Snippets add_filter(‘wp_get_attachment_url’, function ($url, $post_id) { $path = get_attached_file($post_id); if ($path && file_exists($path)) { $url = add_query_arg(‘v’, filemtime($path), $url); } return $url; }, 10, 2);Continue reading
/* ————————————————————————- * * Gravity Form Custom Theme /* ————————————————————————- */ add_filter( ‘gform_default_styles’, function( $styles ) { return ‘{“theme”:””,”inputSize”:”lg”,”inputBorderRadius”:”5″,”inputBorderColor”:”#000″,”inputBackgroundColor”:”#fff”,”inputColor”:”#000″,”inputPrimaryColor”:”#000″,”labelFontSize”:”18″,”labelColor”:”#000″,”descriptionFontSize”:”14″,”descriptionColor”:”#000″,”buttonPrimaryBackgroundColor”:”#4B533D”,”buttonPrimaryColor”:”#fff”}’; } );Continue reading
function display_language_link() { global $wpdb; // Get the ACF field ‘rol’ from current post $post_id = get_the_ID(); $rol = get_field(‘ROL’, $post_id); $country = get_field(‘Ctry’, $post_id); $language = get_field(‘Lang’, $post_id); if (empty($rol)) { return ‘ No language code (ROL) found for…Continue reading
/** * Name: frs_populateUserDropdown * Description: Populates the Assign To user dropdown with users from the same group as the current user * * Return: $values structure * **/ add_filter(‘frm_setup_new_fields_vars’, ‘frs_populateUserDropdown’, 20, 2); add_filter(‘frm_setup_edit_fields_vars’, ‘frs_populateUserDropdown’, 20, 2); function frs_populateUserDropdown( $values,…Continue reading
/* Template Name: K9 Hole Desktop Full */ // Ensure no other header is loaded if this is a full template override // Do NOT call get_header() here if the entire HTML structure is below. ?>Continue reading