test

add_action( ‘admin_notices’, function () { $state = ( defined( ‘WP_DEBUG’ ) && WP_DEBUG ) ? ‘enabled’ : ‘disabled’; echo ‘ WP_DEBUG is ‘ . esc_html( $state ) . ‘. ‘; } );Continue reading

FC – [*] – URL de acceso propia

/** * FC – [*] – URL de acceso propia (snippet de WPCode, tipo PHP, «Run Everywhere»). * * Cambia la dirección de acceso a WordPress, como WPS Hide Login: * * – El acceso pasa a https://la-web/{slug}/. El slug…Continue reading

FC – [*] – Endurecimiento básico

/** * FC – [*] – Endurecimiento básico (snippet de WPCode, tipo PHP, «Run Everywhere»). * * Quita de la web lo que da pistas a quien busca atacarla, sin cambiar nada * de lo que ven los visitantes: *…Continue reading

Secure Admin Menu

// Secure Admin Menu / Kiri Vadivelu / 2026 add_action( ‘admin_init’, ‘secure_admin_menu’ ); function secure_admin_menu() { // Replace 1 with the actual User ID of the owner $owner_id = 1; global $user_ID; // 1. If not owner, remove from sidebar…Continue reading

Custom Admin Menu

// Custom Admin Menu / Kiri Vadivelu / 2026 add_action( ‘admin_init’, ‘owner_admin_menu’ ); function owner_admin_menu() { // Replace 1 with the actual User ID of the owner $owner_id = 1; global $user_ID; // If the current user is NOT the…Continue reading

single post – Highlights [adv_rcmd]

// $advertorial = get_post_meta( get_the_ID(), ‘is_advertorial’, true ); // if ( is_single() && $advertorial === ‘1’ ) { // return; // } if ( ! isset( $GLOBALS[‘post_md_rec_shown’] ) ) { $GLOBALS[‘post_md_rec_shown’] = []; } $already_shown = &$GLOBALS[‘post_md_rec_shown’]; // Theme unique_ids…Continue reading

File Upload Type

// File Upload Type / Kiri Vadivelu / 2026 add_filter( ‘upload_mimes’, function( $mimes ) { return array( ‘jpg|jpeg|jpe’ => ‘image/jpeg’, ‘png’ => ‘image/png’, ‘ico’ => ‘image/x-icon’, ‘webp’ => ‘image/webp’, ‘pdf’ => ‘application/pdf’, // ‘mp3’ => ‘audio/mpeg’, // ‘mp4|m4v’ => ‘video/mp4’,…Continue reading