-
-
Save mikejolley/769a59d8ddd26b57f54d to your computer and use it in GitHub Desktop.
Post status transition for Job Manager
This file contains 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
class My_Job_Manager_Custom_Alerts { | |
/** | |
* Constructor | |
*/ | |
public function __construct() { | |
add_action( 'publish_to_expired', array( $this, 'expired_post' ) ); | |
} | |
/** | |
* Expired post triggered by publish_to_expired hook | |
* @param $post post object | |
*/ | |
public function expired_post( $post ) { | |
// DO THINGS HERE | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment