Created
March 21, 2017 06:47
-
-
Save petersuhm/12f7529e063b23c51a83fc04052c38f9 to your computer and use it in GitHub Desktop.
WP Pusher Hooks Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
add_action('wppusher_theme_was_updated', function($stylesheet) use ($notifier) { | |
$notification = ThemeWasUpdated::fromStylesheet($stylesheet); | |
$notifier->notify($notification); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment