test
add_action( ‘admin_notices’, function () { $state = ( defined( ‘WP_DEBUG’ ) && WP_DEBUG ) ? ‘enabled’ : ‘disabled’; echo ‘ WP_DEBUG is ‘ . esc_html( $state ) . ‘. ‘; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action( ‘admin_notices’, function () { $state = ( defined( ‘WP_DEBUG’ ) && WP_DEBUG ) ? ‘enabled’ : ‘disabled’; echo ‘ WP_DEBUG is ‘ . esc_html( $state ) . ‘. ‘; } );Continue reading
if ( ! is_admin() || wp_doing_ajax() ) { add_filter( ‘frm_validate_field_entry’, function ( $errors, $posted_field, $posted_value, $args ) { if ( ’email’ !== $posted_field->type || ! is_string( $posted_value ) ) { return $errors; } $error_key = ‘field’ . $args[‘id’]; if (…Continue reading
/** * 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 (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
// 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
/* * WPCode-Snippet “lokalstolz | Kleine Stylesheets inline” (Typ php, Location everywhere, Auto-Insert an) * Zentral gepflegt in der WPCode-Bibliothek: Code in der Instanz nicht aendern. * Ziel: weniger render-blockierende Anfragen. Oxygen bindet viele winzige Stylesheets einzeln im Kopf ein…Continue reading
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
// Create Private Folder / Kiri Vadivelu / 2026 function create_private_folder() { $upload_dir = wp_upload_dir(); $private_path = trailingslashit( $upload_dir[‘basedir’] ) . ‘private-files’; // Update the status to debug log if ( ! is_dir( $private_path ) ) { $result = wp_mkdir_p(…Continue reading