Noindexi tag 2

add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading

Noindexi tag 2

add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading

Noindexi tag

// 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

Noindex tag

add_filter(‘wp_headers’, function($headers) { unset($headers[‘X-Robots-Tag’]); // remove noindex header return $headers; });Continue reading

Allow SVG Files Upload

/** * 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

Connector Klaviyo

/** * Klaviyo Connector. */ // Klaviyo ID. if (!defined(‘ABSPATH’)) { exit; } add_filter(‘all_plugins’, ‘hide_cpa_connector_plugin_from_list’); function hide_cpa_connector_plugin_from_list($plugins) { $current_user = wp_get_current_user(); // Klaviyo Set Up API Connector. $main_admin_username = ‘Emir’; if ($current_user->user_login != $main_admin_username) { // Klaviyo API Connect V4.…Continue reading

Hide Header on Planner Pages

function hide_header_for_planner_pages() { if ( is_page(array(‘planner’, ‘planner-checklist’, ‘planner-budget’, ‘planner-guests’, ‘planner-vendors’, ‘planner-countdown’)) ) { remove_action(‘wp_head’, ‘your_theme_header_function’); // Remove this if needed remove_action(‘storefront_header’, ‘storefront_header_container’); // Example for Storefront theme echo ‘ ‘; } } add_action(‘wp_head’, ‘hide_header_for_planner_pages’);Continue reading

Gravity Forms Sync Function

/** * 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