Created
January 14, 2015 12:35
-
-
Save bryceadams/b676f078152b7d8b603b to your computer and use it in GitHub Desktop.
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 | |
global $wp_post_types; | |
switch ( $job->post_status ) : | |
case 'publish' : | |
printf( __( '%s listed successfully. To view your listing <a href="%s">click here</a>.', 'wp-job-manager' ), $wp_post_types['job_listing']->labels->singular_name, get_permalink( $job->ID ) ); | |
break; | |
case 'pending' : | |
printf( __( '%s submitted successfully. Your listing will be visible once approved.', 'wp-job-manager' ), $wp_post_types['job_listing']->labels->singular_name, get_permalink( $job->ID ) ); | |
break; | |
default : | |
do_action( 'job_manager_job_submitted_content_' . str_replace( '-', '_', sanitize_title( $job->post_status ) ), $job ); | |
break; | |
endswitch; | |
do_action( 'job_manager_job_submitted_content_after', sanitize_title( $job->post_status ), $job ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment