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…
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;…
Post Shortcodes
estimated read time, breadcrumbs, related posts
_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:…
om trigger close a element
Click to close!
om-custom-redirect-all-close.js
jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ omRedirect(); });…
om-custom-redirect-close.js
jQuery(document).ready(function($){ function omRedirect() { var url = "https://optinmonster.com"; $(location).attr('href',url); } $(document).on('OptinMonsterOnClose', function(event, data, object){ if(data.optin =…
Yes/No view
#om-{{id}}-yesno button.{{ns}}-CloseButton { /* Your Custom Styles */ }