Common WordPress functions to include in your project.
I have worked on many WordPress projects and there are a list of functions I see myself having to write in every project. Until now, there is now a composer for it!
This project assumes that you have general knowledge of a LAMP stack environment.
- Add this repository to your composer.json (since it's not in packagist.org)
"repositories": [
{
"type": "vcs",
"url": "https://github.com/sgtcoder/wp-functions.git"
}
]
- Run
composer install sgtcoder/wp-functions
- Look at the
/vendor/sgtcoder/wp-functions/src/functions.php
file for functions
- More Functions will be added
Michael J Brancato – @sgtcoder – mike@sgtcoder.com
Distributed under the GNU GENERAL PUBLIC LICENSE Version 3. See LICENSE
for more information.
https://github.com/sgtcoder/WP-Functions
- Ability to disable functions as comma seperated:
define('WP_DISABLED_FUNCTIONS', 'request,remove_emoji');
- Fork it (https://github.com/sgtcoder/WP-Functions/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
If you have any questions or feedback, please email me at mike@sgtcoder.com