Pluggable plugins

WordPress provides the ability to use pluggable functions through its pluggable architecture. Pluggable functions are no longer added to the core, due to the limitations in comparison to using actions and filters. WordPress codex defines pluggable functions as functions that let you override certain core functions via plugins. You can find all the pluggable functions in the pluggable.php file located inside the wp-includes folder of WordPress. The following are some of the popular pluggable functions provided by WordPress:

  • wp_logout: this is used to log the user out of the system. You can do tasks such as removing custom session variables and recording the user session time to the database by writing a custom wp_logout ...

Get Wordpress Web Application Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.