PHP – Custom color dashboard (menu et barre du haut)
function custom_admin_style() { echo ‘ ‘; } add_action(‘admin_head’, ‘custom_admin_style’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function custom_admin_style() { echo ‘ ‘; } add_action(‘admin_head’, ‘custom_admin_style’);Continue reading
/** 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
/** * 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
/** * Extend native WordPress shortcode block with live preview */ if ( ! defined( ‘ABSPATH’ ) ) exit; class Enhanced_Shortcode_Block { public function __construct() { add_action( ‘enqueue_block_editor_assets’, array( $this, ‘enqueue_assets’ ) ); // Ensure shortcodes work in other blocks…Continue reading
// Add custom styles function add_the_new_normal_css() { wp_register_style( ‘the-new-normal-css’, ‘https://cdn.jsdelivr.net/gh/sarahschopick/the-new-normal.css@1f917841c3a1382d644952dcaefb67e947467e22/the-new-normal.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘the-new-normal-css’ ); } add_action( ‘wp_enqueue_scripts’, ‘add_the_new_normal_css’ );Continue reading
// Restrict login to only the senior developer by user ID function restrict_login_to_senior_dev( $user, $username, $password ) { // Allow login only for the specified user ID $allowed_user_id = 1; // Replace with your user ID (e.g., 1, 2, etc.)…Continue reading