Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function status_save_email( $post_id ) {
- if ( !wp_is_post_revision($post_id) ) {
- $slug = 'sessions';
- if ( $slug != $_POST['post_type'] ) { return; }
- $status = get_the_terms( $post_id, 'status_tax' );
- if ( $status != null ){
- foreach( $status as $state ) {
- $state_name = $state->name ;
- }}
- if ( $state_name == 'Rejected' || $state_name == 'Approved' ){
- echo "bingo";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement