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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.