diff --git a/includes/class-wp-job-manager-shortcodes.php b/includes/class-wp-job-manager-shortcodes.php index 347995233..652dbd10b 100644 --- a/includes/class-wp-job-manager-shortcodes.php +++ b/includes/class-wp-job-manager-shortcodes.php @@ -145,6 +145,28 @@ public function filter_paginate_links( $link ) { return Job_Dashboard_Shortcode::instance()->filter_paginate_links( $link ); } + /** + * Handles actions which need to be run before the shortcode e.g. post actions. + * + * @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode. + */ + public function shortcode_action_handler() { + _deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::handle_actions' ); + Job_Dashboard_Shortcode::instance()->handle_actions(); + } + + /** + * Handles actions on job dashboard. + * + * @throws Exception On action handling error. + * + * @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode. + */ + public function job_dashboard_handler() { + _deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::handle_actions' ); + Job_Dashboard_Shortcode::instance()->handle_actions(); + } + /** * Displays edit job form. * @@ -587,6 +609,36 @@ public function output_job_apply( $atts ) { return ob_get_clean(); } + /** + * Add expiration details to the job dashboard date column. + * + * @param \WP_Post $job + * + * @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode. + * + * @output string + */ + public function job_dashboard_date_column_expires( $job ) { + _deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::the_expiration_date' ); + Job_Dashboard_Shortcode::instance()->the_expiration_date( $job ); + } + + /** + * Add job status to the job dashboard title column. + * + * @param \WP_Post $job + * + * @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode. + * + * @output string + */ + public function job_dashboard_title_column_status( $job ) { + _deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::the_job_status' ); + Job_Dashboard_Shortcode::instance()->the_status( $job ); + } + + + } WP_Job_Manager_Shortcodes::instance();