Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Plugin con las funciones personalizadas que usamos en el directo
<?php
/*
Plugin Name: Funcionalidades
Plugin URI: https://avalos.sv
Description: Plugin con las funciones personalizadas para tu web
Version: 1.0.0
Author: Alex Avalos
Author URI: https://avalos.sv
License: GPL 2+
License URI: https:/avalos.sv
*/
// Ocultar barra de administración
add_filter( 'show_admin_bar', '__return_false' );
// Ocultar campo web en los comentarios
function elimina_campos_form_comentario( $fields ) {
unset( $fields['url'] );
return $fields;
}
add_filter( 'comment_form_default_fields', 'elimina_campos_form_comentario' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment