Skip to content

Instantly share code, notes, and snippets.

@davilera
Last active July 7, 2017 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davilera/905d9abd5ab524cac04a4bed5b7c4d16 to your computer and use it in GitHub Desktop.
Save davilera/905d9abd5ab524cac04a4bed5b7c4d16 to your computer and use it in GitHub Desktop.
WP Customizations Plugin

Example of a tiny plugin for adding WordPress customizations.

<?php
/**
* Plugin Name: Customizations
* Plugin URI: https://neliosoftware.com
* Description: Customizing WordPress
* Version: 1.0.0
* Author: David Aguilera
* Author URI: https://neliosoftware.com
*/
<?php
/**
* Plugin Name: Customizations
* Plugin URI: https://neliosoftware.com
* Description: Customizing WordPress
* Version: 1.0.0
* Author: David Aguilera
* Author URI: https://neliosoftware.com
*/
defined( 'ABSPATH' ) or die( 'Get out!' );
/**
* Changes admin's footer text.
*/
function nelio_custom_text_in_footer_admin() {
return 'Thanks for contributing to Nelio!';
}//end nelio_custom_text_in_footer_admin()
add_action( 'admin_footer_text', 'nelio_custom_text_in_footer_admin' );
// Add more functions below.
<?php
/**
* Plugin Name: Customizations
* Plugin URI: https://neliosoftware.com
* Description: Customizing WordPress
* Version: 1.0.0
* Author: David Aguilera
* Author URI: https://neliosoftware.com
*/
defined( 'ABSPATH' ) or die( 'Get out!' );
/**
* Changes admin's footer text.
*/
function nelio_custom_text_in_footer_admin() {
return '¡Gracias por contribuir a Nelio!';
}//end nelio_custom_text_in_footer_admin()
add_action( 'admin_footer_text', 'nelio_custom_text_in_footer_admin' );
// Tus otras funciones, aquí debajo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment