Performance-Clean Head

add_action(‘init’, function () { remove_action(‘wp_head’,’print_emoji_detection_script’,7); remove_action(‘wp_print_styles’,’print_emoji_styles’); remove_action(‘wp_head’,’wp_oembed_add_discovery_links’,10); remove_action(‘wp_head’,’rest_output_link_wp_head’,10); });Continue reading

Get X – Force Hreflang en-CA

/** * Get X Media – Canada Hreflang (Output Buffering Method) * * @package GetXMedia_Hreflang * @author Get X Media * @version 3.0.1 */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } /** * Inject hreflang tag into…Continue reading

Get X – Clean RankMath Data Extractor

/** * Clean RankMath Data Extractor – No Styling * Universal solution for extracting RankMath Local Business data * Works across any WordPress site with RankMath * Add to WP Code Snippets – PHP Snippet – Run Everywhere * *…Continue reading

Get X – Force RankMath OG Local CA

/** * Get X Media – Force RankMath Canada Targeting (Aggressive) * * @package GetXMedia_RankMath_CA * @author Get X Media * @version 2.0.0 */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } /** * Replace RankMath’s en_US locale…Continue reading

LPS_School_Search

/** * Plugin Name: LPS School Search (Drawer + Map + Grade Pills) * Description: Shortcode [LPS_School_Search] (aliases: [lps_school_search], [schools_toggle]) — Drawer with map at top; filters OFF by default; numbered pins; circular grade pill linking to FL DOE report…Continue reading

WPAllimport Status Translator

function normalize_status($status) { $status_lower = strtolower($status); if ($status_lower == ‘published’) { return ‘publish’; } elseif ($status_lower == ‘archived’) { return ‘trash’; } else { return ‘draft’; } }Continue reading

Plug-ins auto update instellingen activeren

/** * Activeer alle automatische updates (globaal), * maar laat zichtbare acties alleen draaien voor Pixelsz beheerders. */ if ( ! defined( ‘ABSPATH’ ) ) exit; /** * Hulpfunctie: check of huidige gebruiker een Pixelsz beheerder is */ function pixelsz_is_beheerder()…Continue reading

Endre tittel på Post/Innlegg

/************* Change dashboard post to Investering *************/ add_action( ‘init’, ‘cp_change_post_object’ ); function cp_change_post_object() { $get_post_type = get_post_type_object(‘post’); $labels = $get_post_type->labels; $labels->name = ‘Investeringer’; $labels->singular_name = ‘Investering’; $labels->add_new_item = ‘Legg til investering’; $labels->edit_item = ‘Rediger investering’; $labels->new_item = ‘Ny investering’; $labels->view_item…Continue reading