Completely Disable Comments (copy)

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Change the WP Footer (links)

/** * The template for displaying the footer * * Contains footer content and the closing of the #main and #page div elements. * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ ?>Continue reading

Z-Index shower

/** * Plugin Name: Shuffles Z-Index Debugger * Description: Adds a visual z-index overlay tool with an admin bar toggle, styled to match the Shuffles theme. * Version: 1.0 * Author: ToughGigs Tools */ // Add the toggle button to…Continue reading

Kadence Extra Header Row for AdButler

/** * Kadence extra header row with native AdButler tag (no iframe, no doc.write hacks) * – Renders INSIDE Kadence header so it follows sticky behavior * – Full-viewport centered row; no reserved height; no interference with other tags */…Continue reading

Smart-Buttons und Zahlungsbereich ausblenden, wenn der Warenkorb leer ist (Funktioniert auf Desktop & Mobile mit Woo/FunnelKit Checkout)

/** * Smart-Buttons und Zahlungsbereich ausblenden, wenn der Warenkorb leer ist * Funktioniert auf Desktop & Mobile mit Woo/FunnelKit Checkout */ add_action(‘woocommerce_checkout_before_customer_details’, function () { if ( function_exists(‘WC’) && WC()->cart ) { printf( ‘‘, WC()->cart->get_cart_contents_count() ); } }); add_filter(‘woocommerce_update_order_review_fragments’, function…Continue reading