Disable Relational Links For Single Posts
remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’ );Continue reading
remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’ );Continue reading
// Remove the REST API lines from the HTML Header remove_action(‘ wp_head’, ‘rest_output_link_wp_head’, 10 ); // completely disable json api // Filters for WP-API version 1.x add_filter( ‘json_enabled’, ‘__return_false’ ); add_filter( ‘json_jsonp_enabled’, ‘__return_false’ ); // Filters for WP-API version 2.x…Continue reading
remove_action( ‘wp_head’, ‘wlwmanifest_link’ );Continue reading
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
// 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_filter( ‘charitable_campaign_suggested_donations’, ‘example_charitable_campaign_suggested_donations’, 10, 2 ); function example_charitable_campaign_suggested_donations( $value = array(), $campaign_object ) { if ( empty( $value ) ) { return; } /* $value is an array of suggested donations. It often looks like this by default: Array (…Continue reading
@ini_set( ‘upload_max_size’ , ‘256M’ ); @ini_set( ‘post_max_size’, ‘256M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading