Typography Enqueue
function typography_enqueue_styles() { // Enqueue Typeboost.css from Cloudflare CDN wp_enqueue_style('typeboost-css', 'https://cdnjs.cloudflare.com/ajax/libs/typeboost/1.0.0/typeboost.css', array(), '1.0.0'); // Enqueue webfontloader.js…
Show and Save Custom Taxonomy On the Vendor Product Edit Form
This code snippet is for displaying and saving the custom product taxonomy (e.g., "product_brand" or "sizes")…
Custom Tax Display Settings for Regular Prices by Specific Wholesale Roles
This code snippet will be applied to simple products on the single product page only
Disable Visual Editor Tab
Hides the Visual Editor tab from pages and posts.
NMDFX Admin bar, Dashboard, Edits & Custom CSS
/* HIDE Monster Icon */ .monsterinsights-quick-links, .monsterinsights-float-right { display: none!important; } #monsterinsights_reports_widget { padding: 50px 0;…
Admin Functions for posts.
Make it easier to edit posts when viewing archives or single pages. Add page slug to…
Post Shortcodes
estimated read time, breadcrumbs, related posts
Verzend mogelijkheden weghalen bij gratis verzenden behalve ophalen op locaite
function custom_hide_shipping_when_free_shipping_is_available( $rates, $package ) { $free_shipping_exists = false; $local_pickup_exists = false; // Check if Free…
_MK - SECURITY - Block Author Enumeration
// 🔒 Block ?author=1 user enumeration attempts add_action('init', function () { if (!is_admin() && isset($_GET['author'])) {…
_MK - Last connection
// Enregistre la date de connexion de l'utilisateur function enregistrer_derniere_connexion($user_login, $user) { // Met à jour…
_MK - SECURITY - Disable XML-RPC-API
// Disable XML-RPC add_filter( 'xmlrpc_enabled', '__return_false' ); // Block access to xmlrpc.php via .htaccess equivalent (Apache…
Untitled Snippet
(self.SWG_BASIC = self.SWG_BASIC || []).push( basicSubscriptions => { basicSubscriptions.init({ type: "NewsArticle", isPartOfType: ["Product"], isPartOfProductId: "CAow7ue8DA:openaccess", clientOptions:…