Skip to content

Instantly share code, notes, and snippets.

@neocamel
Created May 14, 2018 21:25
Show Gist options
  • Save neocamel/f645159ab10cde53d481af5af04a01be to your computer and use it in GitHub Desktop.
Save neocamel/f645159ab10cde53d481af5af04a01be to your computer and use it in GitHub Desktop.
Don't want to modify another theme developer's functions.php file? Create a simple plugin and paste your function in there, enable the plugin. Viola!
<?php
/**
* Plugin Name: My Custom Functions
* Plugin URI: http://yoursite.com
* Description: This is an awesome custom plugin with functionality that I'd like to keep when switching things.
* Author: Your Name
* Author URI: http://yoursite.com
* Version: 0.1.0
*/
/* Place custom code below this line. */
/* Place custom code above this line. */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment