diff --git a/admin/class-awsm-job-openings-overview.php b/admin/class-awsm-job-openings-overview.php
index 55196af3..eeeee45b 100644
--- a/admin/class-awsm-job-openings-overview.php
+++ b/admin/class-awsm-job-openings-overview.php
@@ -258,6 +258,7 @@ public static function get_jobs_by_author( $numberjobs = 7 ) {
$args = array(
'numberjobs' => $numberjobs,
'author_id' => get_current_user_id(),
+ 'job_status' => 'publish',
);
return self::get_jobs( $args );
}
diff --git a/admin/templates/meta/applicant-single.php b/admin/templates/meta/applicant-single.php
index 0503816e..7009a12a 100644
--- a/admin/templates/meta/applicant-single.php
+++ b/admin/templates/meta/applicant-single.php
@@ -13,8 +13,7 @@
$applicant_job_id = get_post_meta( $post->ID, 'awsm_job_id', true );
$resume_field_label = ( new AWSM_Job_Openings_Form() )->get_attachment_label( $applicant_job_id );
$this->is_main_applicant_viewed( $post->ID );
-// $analytics_option = get_option( 'awsm_jobs_analytics_data' );
-// var_dump( $analytics_option );
+
/**
* Initialize applicant meta box.
*
diff --git a/admin/templates/overview/main.php b/admin/templates/overview/main.php
index 1825aaa9..f09c31a7 100644
--- a/admin/templates/overview/main.php
+++ b/admin/templates/overview/main.php
@@ -251,9 +251,7 @@
';
- // var_dump($jobs);?>
+ if ( ! empty( $jobs ) ) : ?>
ID );
@@ -261,7 +259,6 @@
// Check if the job is not expired
if ( ! $expiry_date || strtotime( $expiry_date ) >= strtotime( current_time( 'Y-m-d' ) ) ) :
-
$job_title = get_the_title( $job->ID );
$published_date = get_the_date( 'F j, Y', $job->ID );
?>
diff --git a/inc/class-awsm-job-openings-core.php b/inc/class-awsm-job-openings-core.php
index 3edd5252..1224a6fa 100644
--- a/inc/class-awsm-job-openings-core.php
+++ b/inc/class-awsm-job-openings-core.php
@@ -24,6 +24,9 @@ public function __construct() {
// WooCommerce - Allow the backend access for users with HR Role.
add_filter( 'woocommerce_disable_admin_bar', array( $this, 'woocommerce_disable_backend_access' ) );
add_filter( 'woocommerce_prevent_admin_access', array( $this, 'woocommerce_disable_backend_access' ) );
+
+
+
}
public static function init() {
@@ -155,7 +158,7 @@ public function register_post_types() {
'capabilities' => array(
'create_posts' => 'do_not_allow',
),
- 'supports' => false,
+ 'supports' => ['title'],
'rewrite' => false,
)
);
@@ -463,4 +466,7 @@ public function woocommerce_disable_backend_access( $disable ) {
}
return $disable;
}
+
+
+
}
diff --git a/wp-job-openings.php b/wp-job-openings.php
index eab50699..3e7e4a91 100644
--- a/wp-job-openings.php
+++ b/wp-job-openings.php
@@ -256,7 +256,7 @@ public function admin_filters() {
add_filter( 'months_dropdown_results', array( $this, 'awsm_job_month_dropdown' ), 10, 2 );
add_filter( 'views_edit-awsm_job_openings', array( $this, 'modified_post_status_filter' ) );
add_filter( 'views_edit-awsm_job_application', array( $this, 'awsm_job_application_action_links' ) );
- add_filter( 'bulk_actions-edit-awsm_job_application', array( $this, 'awsm_job_application_bulk_actions' ) );
+ //add_filter( 'bulk_actions-edit-awsm_job_application', array( $this, 'awsm_job_application_bulk_actions' ) );
add_filter( 'post_row_actions', array( $this, 'awsm_posts_row_actions' ), 10, 2 );
}
}
@@ -1147,7 +1147,7 @@ public function awsm_admin_enqueue_scripts() {
array(
'screen_id' => AWSM_Job_Openings_Overview::$screen_id,
'analytics_data' => AWSM_Job_Openings_Overview::get_applications_analytics_data(),
- 'default_option' => get_option('awsm_jobs_analytics_data', 'month'),
+ 'default_option' => get_option('awsm_jobs_analytics_data', 'year'),
'i18n' => array(
'chart_label' => esc_html__( 'Applications', 'wp-job-openings' ),
),