-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jobs pending payment to the Jobs dashboard #2141
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,7 +268,7 @@ private function is_job_available_on_dashboard( WP_Post $job ) { | |
private function get_job_dashboard_query_args( $posts_per_page = -1 ) { | ||
$job_dashboard_args = [ | ||
'post_type' => 'job_listing', | ||
'post_status' => [ 'publish', 'expired', 'pending', 'draft', 'preview' ], | ||
'post_status' => [ 'publish', 'expired', 'pending', 'draft', 'preview', 'pending_payment' ], | ||
'ignore_sticky_posts' => 1, | ||
'posts_per_page' => $posts_per_page, | ||
'orderby' => 'date', | ||
|
@@ -418,6 +418,10 @@ public function get_job_actions( $job ) { | |
break; | ||
case 'pending_payment': | ||
case 'pending': | ||
$actions['continue'] = [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We might need to split We should probably put this in an action under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes I agree, and IMO it should set the status back to Draft to actually have the listing go through the status transitions when they actually occur. Reason being the listing should go into |
||
'label' => __( 'Continue Submission', 'wp-job-manager' ), | ||
'nonce' => $base_nonce_action_name, | ||
]; | ||
if ( WP_Job_Manager_Post_Types::job_is_editable( $job->ID ) ) { | ||
$actions['edit'] = [ | ||
'label' => __( 'Edit', 'wp-job-manager' ), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably hook into
job_manager_get_dashboard_jobs_args
from WCPL.