Magic Functions WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A collection of magic functions for WordPress plugins and themes.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/luisdelcid/magic-functions/archive/refs/heads/main.zipMagic functions for WordPress plugins and themes.
Description
Magic functions for WordPress plugins and themes.
For plugins
Add the following code to the main plugin file:
add_action('magic_loaded', function(){
// Add your custom theme functions here...
});
For themes
Create a new file named magic-functions.php and add your custom theme functions there or add the following code to the theme's functions.php file:
add_action('after_magic_loaded', function(){
// Add your custom theme functions here...
});
Note that after_magic_loaded is the first action hook available to themes, instead of after_setup_theme.
Changelog
To see what’s changed, visit the GitHub repository »
Releases
24 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.