code that extend the core functionality of WordPress. ‣ WordPress plugins are made up of PHP code and other assets such as images, CSS, and JavaScript. https://developer.wordpress.org/plugins/intro/what-is-a-plugin
specific points to change how WordPress behaves without editing any core files. A hook allows you to add your own code or change what WordPress is doing or outputting by default. ‣ Actions ‣ Filters WordPress has two types of Hooks.
when it is run ‣ $function_to_add - the callback function which will be called when the action is run ‣ $priority - (int) the priority given to the callback function ‣ $accepted_args - (int) the number of arguments that will be passed to the callback function HOW TO HOOK INTO AN ACTION?
it is run ‣ $function_to_add - the callback function which will be called when the filter is run ‣ $priority - (int) the priority given to the callback function ‣ $accepted_args - (int) the number of arguments that will be passed to the callback function HOW TO HOOK INTO A FILTER?
is always recommended to create a directory to hold your plugin file ‣ Always prefix your function names ‣ Sanitize all input data ‣ Enable debug mode when developing a plugin define( 'WP_DEBUG', true ); IMPORTANT NOTES