Disable Really Simple Discovery feature
remove_action( ‘wp_head’, ‘rsd_link’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
remove_action( ‘wp_head’, ‘rsd_link’ );Continue reading
add_filter( ‘heartbeat_settings’, function ( $settings ) { $settings[‘interval’] = 120; return $settings; } );Continue reading
remove_image_size( ‘1536×1536’ ); remove_image_size( ‘2048×2048’ );Continue reading
// [d] – inserts the current day with two digits e.g. 06 // [D] – inserts the current day with three letters e.g. Mon // [j] – inserts the current day without leading zeros e.g. 6 // [l] – inserts…Continue reading
function custom_vendor_term_link($url, $term, $taxonomy){ switch ($taxonomy) { case ‘vendor-location’: return home_url(‘/vendor/?_vendor_location=’ . $term->slug); case ‘vendor-category’: return home_url(‘/vendor/?_vendor_category=’ . $term->slug); case ‘vendor-pricing’: return home_url(‘/vendor/?_vendor_pricing=’ . $term->slug); case ‘vendor-zone’: return home_url(‘/vendor/?_vendor_zone=’ . $term->slug); case ‘vendor-identity-attribute’: return home_url(‘/vendor/?_vendor_identity_attributes=’ . $term->slug); default: return $url;…Continue reading
function custom_vendor_term_link($url, $term, $taxonomy){ switch ($taxonomy) { case ‘vendor-location’: return home_url(‘/vendor/?_vendor_location=’ . $term->slug); case ‘vendor-category’: return home_url(‘/vendor/?_vendor_category=’ . $term->slug); case ‘vendor-pricing’: return home_url(‘/vendor/?_vendor_pricing=’ . $term->slug); case ‘vendor-zone’: return home_url(‘/vendor/?_vendor_zone=’ . $term->slug); case ‘vendor-identity-attribute’: return home_url(‘/vendor/?_vendor_identity_attributes=’ . $term->slug); default: return $url;…Continue reading
/*———————————————– Distinto color segun estado de entrada ———————————————–*/ function posts_status_color() { ?>Continue reading
// // Modifies the WP Grid Builder query to filter vendors based on matching ‘vendor-location’ // // taxonomy terms with the current post’s ‘post-location’ terms. // // This function is hooked into the WP Grid Builder’s query argument filter, //…Continue reading
// Modifies the WP Grid Builder query to filter vendors based on matching ‘vendor-location’ // taxonomy terms with the current post’s ‘post-location’ terms. // This function is hooked into the WP Grid Builder’s query argument filter, // specifically targeting a…Continue reading
add_action( ‘admin_bar_menu’, function ( $admin_bar ) { // Only show this when editing a post. $screen = get_current_screen(); if ( ! $screen || ‘post’ !== $screen->base ) { return; } $post = get_post(); $post_type_object = get_post_type_object( $post->post_type ); if (…Continue reading