Skip to content

Commit

Permalink
Add filter to allow duplication on more post statuses (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeyarce authored Feb 26, 2024
1 parent 4303b77 commit 64412ae
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions includes/class-wp-job-manager-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,6 @@ public function get_job_actions( $job ) {
'nonce' => $base_nonce_action_name,
];
}

$actions['duplicate'] = [
'label' => __( 'Duplicate', 'wp-job-manager' ),
'nonce' => $base_nonce_action_name,
];
break;
case 'expired':
if ( job_manager_get_permalink( 'submit_job_form' ) ) {
Expand Down Expand Up @@ -509,7 +504,11 @@ public function get_job_actions( $job ) {
break;
}

$actions['delete'] = [
$actions['duplicate'] = [
'label' => __( 'Duplicate', 'wp-job-manager' ),
'nonce' => $base_nonce_action_name,
];
$actions['delete'] = [
'label' => __( 'Delete', 'wp-job-manager' ),
'nonce' => $base_nonce_action_name,
];
Expand Down

0 comments on commit 64412ae

Please sign in to comment.