Created
February 5, 2019 11:42
-
-
Save ohyeahdev/eac3c1baf1499210e4d231341f915f14 to your computer and use it in GitHub Desktop.
Código de la sección #develotips del primer programa de WP LIVE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* #develotips001- Primer programa de WPLIVE | |
* Author: Oh! Yeah Dev | |
* Author URL: https://ohyeahdev.com | |
* Título: Cómo añadir código a WordPress | |
*/ | |
/* | |
* Descripción | |
* | |
* Diferentes formas de añadir código a WordPress, de mejor a peor: | |
* | |
* 1-. Crear un mu-plugin de funciones. | |
* 2-. Crear un plugin de funciones. | |
* 3-. Instalar el plugin "Code Snippets". | |
* 4-. Modificar el fichero "functions.php" del tema (desde nuestro ordenador). | |
* 5-. Modificar el fichero "functions.php" desde la administración de WordPress. | |
* | |
*/ | |
/* | |
* Snippet utilizado: Quitar la barra de administración en el front | |
*/ | |
add_filter( 'show_admin_bar', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment