Type: php
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
Gravity Form Confirmation Anchor
add_filter( ‘gform_confirmation_anchor’, ‘__return_true’ );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
Disable & Remove Login with GD button
/** Removes the “Login with GoDaddy” SSO Integration. */ add_action( ‘plugins_loaded’, function() { add_filter( ‘wpaas_gd_sso_button_enabled’, ‘__return_false’, 99999999, 1 ); } );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
Dynamic logo sizing
/** * Site Logo block: live height preview with dropdown under Dimensions and width slider removed */ if ( ! defined( ‘ABSPATH’ ) ) exit; // Default pixel heights function afs_logo_sizes_defaults() { return array( ‘small’ => 50, ‘medium’ => 80,…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
Dynamic Shortcode Execution
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