Noindexi tag 2
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
// Remove ‘noindex’ meta tag from all pages unless explicitly set add_action(‘template_redirect’, function () { // Remove Yoast SEO ‘noindex’ if present if (function_exists(‘wpseo_robots’)) { remove_action(‘wp_head’, ‘wpseo_robots’); } // Remove All in One SEO ‘noindex’ if present if (class_exists(‘AIOSEO\Plugin\Common\Main’)) {…Continue reading
add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/** * Gravity Forms Field to CPT Mirror * Creates/updates a gf_field post for each form field * Works on: form save, JSON import, manual trigger, and form deletion */ defined( ‘ABSPATH’ ) || exit; // Add a manual test…Continue reading
/** * Registers the “Gravity Form Field Meta” field group on gf_field posts. */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function () { if ( ! function_exists( ‘acf_add_local_field_group’ ) ) { return; } acf_add_local_field_group( [ ‘key’ => ‘group_gf_field_meta’, ‘title’…Continue reading
/** * Plugin Name: Gravity Form Field CPT * Description: Registers post-type `gf_field` so each Gravity Forms field can be mirrored as a post. * Author: Next Step Consulting * Version: 1.0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’,…Continue reading
// Author: Sumaiya, Clickup Doc:https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-25415 /** * Render Dynamic Search Widget * * This function creates a WordPress shortcode to display a dynamic search widget. [dynamic_search_widget] * The widget allows users to search for companies and employees in the database.…Continue reading