civicrm/civicrm-core — pull request #4360 by christianwach (2014-10-14 15:53:16+00:00)
Title: CRM-15454 - Enable multiple WordPress plugins to receive callbacks from CiviCRM hooks

At present, only one WordPress callback can exist per CiviCRM hook. For example, `hook_civicrm_pre` can only be received by `wordpress_civicrm_pre()`. This prevents multiple WordPress plugins from receiving callbacks from the same CiviCRM hook.

I have rewritten `CRM/Utils/Hook/WordPress.php` to enable this behaviour, whilst retaining compatibility with current implementations and Civi extensions.

There are three current CiviCRM hooks which do not conform to the standard CiviCRM hook signature, which will need deprecating in favour of new hooks that do not require return values.

Full documentation in the README here:
https://github.com/christianwach/civicrm-wp-hook-tester

Jira issue URL:
https://issues.civicrm.org/jira/browse/CRM-15454