admin-expiring-job.php
6 years ago
admin-new-job.php
6 years ago
admin-updated-job.php
6 years ago
email-footer.php
7 years ago
email-header.php
7 years ago
email-job-details.php
1 week ago
employer-expiring-job.php
6 years ago
admin-new-job.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email content when notifying admin of a new job listing. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/job_manager/emails/plain/admin-new-job.php. |
| 6 | * |
| 7 | * @see https://wpjobmanager.com/document/template-overrides/ |
| 8 | * @author Automattic |
| 9 | * @package wp-job-manager |
| 10 | * @category Template |
| 11 | * @version 1.31.1 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; // Exit if accessed directly. |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @var WP_Post $job |
| 20 | */ |
| 21 | $job = $args['job']; |
| 22 | |
| 23 | // translators: %1$s placeholder is the name of the site, %2$s placeholder is URL to the blog. |
| 24 | printf( esc_html__( 'A new job listing has been submitted to %1$s (%2$s).', 'wp-job-manager' ), esc_html( get_bloginfo( 'name' ) ), esc_url( home_url() ) ); |
| 25 | switch ( $job->post_status ) { |
| 26 | case 'publish': |
| 27 | printf( ' ' . esc_html__( 'It has been published and is now available to the public.', 'wp-job-manager' ) ); |
| 28 | break; |
| 29 | case 'pending': |
| 30 | // translators: Placeholder %s is the admin job listings URL. |
| 31 | printf( ' ' . esc_html__( 'It is awaiting approval by an administrator in WordPress admin (%s).', 'wp-job-manager' ), esc_url( admin_url( 'edit.php?post_type=job_listing' ) ) ); |
| 32 | break; |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Show details about the job listing. |
| 37 | * |
| 38 | * @param WP_Post $job The job listing to show details for. |
| 39 | * @param WP_Job_Manager_Email $email Email object for the notification. |
| 40 | * @param bool $sent_to_admin True if this is being sent to an administrator. |
| 41 | * @param bool $plain_text True if the email is being sent as plain text. |
| 42 | */ |
| 43 | do_action( 'job_manager_email_job_details', $job, $email, true, $plain_text ); |
| 44 |