Automattic / WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
https://wpjobmanager.com
GNU General Public License v3.0
893 stars 366 forks source link

Allow duplication on all post statuses #2780

Closed mikeyarce closed 4 months ago

mikeyarce commented 4 months ago

Fixes https://github.com/Automattic/WP-Job-Manager/issues/2470

Changes Proposed in this Pull Request

Testing Instructions

add_filter( 'job_manager_allowed_post_status_duplicate_jobs', function( $post_status ) {
    $post_status[] = 'preview';
    return $post_status;
});

Release Notes


Plugin build for 82286ded26febb5ba3b64e21f0b29c11b10cccbc
📦 Download plugin zip
▶️ Open in playground
mikeyarce commented 4 months ago

@yscik I was leaning that way originally, so now that you say that I think we should do it for all post statuses. Done in https://github.com/Automattic/WP-Job-Manager/pull/2780/commits/82286ded26febb5ba3b64e21f0b29c11b10cccbc