Open aheckler opened 6 years ago
Similar request in 1088783-zen
@richardmtl @aheckler @danjjohnson Any news here on that? It´s been nearly 3 years
@Braehler I no longer work for Automattic. Thanks!
@aheckler @danjjohnson Updates related to this issue? Like mentioned above, this is a bug since nearly 3 years
@Braehler no updates on this right now. When there are, the developers will comment here. This is a feature request rather than a bug, so it's not likely to be prioritized I'm afraid.
I'm not sure this should go in WPJM core or in WC Paid Listings. If we decide on WCPL, I'll move this issue there.
@jom Any news on that? Still core issue or WC Paid Listings now? And what about a timeline ? also mentioned here #2016
Updates @jom ?
There is now a plugin that can do that - Dashboard and User Account for WP Job Manager, Addons and WooCommerce.
Hi there. It is possible that someone will need it.
In file \includes\class-wp-job-manager-shortcodes.php on line 61 has hook:
add_action( 'wp', [ $this, 'shortcode_action_handler' ] );
Function in this hook on line 84:
private function is_job_dashboard_page() {
global $post;
if ( is_page() && has_shortcode( $post->post_content, 'job_dashboard' ) ) {
return true;
}
return false;
}
In other words - before start actions check shortcode in post_content.
For best quick solution you have four options:
Disable this hook with the help Remove Class Action Without Access to Class Object Function (Search in Google).
Comment function in \includes\class-wp-job-manager-shortcodes.php (it's bad option).
If you use custom template for account page (example my-account.php) – not use the_content()
; in this php code, but insert shortcode [job_dashboard]
in account page (in the admin panel). Further: set Account Page for option Job Management Page in plugin settings (Jobs Settings – Pages).
Add Shortcode [job_dashboard]
in template/page and hide this without CSS.
I chose the third option for myself.
Support References
This comment is automatically generated. Please do not edit it.
Lots of people use WPJM and WooCommerce together. WooCommerce already outputs a user dashboard of sorts using
[woocommerce_my_account]
. We should have at least some integration that would allow the job dashboard to show up on that page, as opposed to being on its own page.947043-zen