Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Last active January 1, 2016 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/769a59d8ddd26b57f54d to your computer and use it in GitHub Desktop.
Save mikejolley/769a59d8ddd26b57f54d to your computer and use it in GitHub Desktop.
Post status transition for Job Manager
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