Hey Shimu666,
No problem. I also ran into the same issue, so what I did was I made custom profile tabs and inserted the shortcode for WP Job Manager pages.
// Add Job Dash Which Only Shows For Employer While Viewing Their Own Profile Page //
add_filter('um_profile_tabs', 'add_custom_profile_tab1', 7 );
function add_custom_profile_tab1( $jobtab ) {
if ( um_is_myprofile() && ( um_user('role') == 'employer') ) {
$jobtab['dashboard'] = array(
'name' => 'Manage Jobs',
'icon' => 'um-faicon-archive',
'custom' => true,
);
}
return $jobtab;
}
add_action('um_profile_content_dashboard_default', 'um_profile_content_dashboard_default');
function um_profile_content_dashboard_default( $args ) {
echo do_shortcode('[job_dashboard]');
}
// Add Subscription Tab Which Only Shows For Employer While Viewing Their Own Profile Page If WooCommerce Subscriptions Is Installed //
add_filter('um_profile_tabs', 'add_custom_profile_tab2', 8 );
function add_custom_profile_tab2( $subscriptiontab ) {
if ( um_is_myprofile() && ( um_user('role') == 'employer') ) {
$subscriptiontab['subscription'] = array(
'name' => 'Subscription',
'icon' => 'um-faicon-shopping-cart',
'custom' => true,
);
}
return $subscriptiontab;
}
add_action('um_profile_content_subscription_default', 'um_profile_content_subscription_default');
function um_profile_content_subscription_default( $args ) {
echo do_shortcode('[woocommerce_my_account]');
}
// Add Notifications Tab Which Shows For All Logged In User Roles If UM Notifications Is Installed //
add_filter('um_profile_tabs', 'add_custom_profile_tab3', 19 );
function add_custom_profile_tab3( $notificationstab ) {
if ( um_is_myprofile() ){
$notificationstab['notifications'] = array(
'name' => 'Notifications',
'icon' => 'um-faicon-bell',
'custom' => true,
);
}
return $notificationstab;
}
add_action('um_profile_content_notifications_default', 'um_profile_content_notifications_default');
function um_profile_content_notifications_default( $args ) {
echo do_shortcode('[ultimatemember_notifications]');
}
// Add Job Listing Tab Which Only Shows For Users Who Are Viewing An Employers Profile //
add_filter('um_profile_tabs', 'add_custom_profile_tab4', 4 );
function add_custom_profile_tab4( $listingstab ) {
if ( !um_is_myprofile() && ( um_user('role') == 'employer' ) ) {
$listingstab['jobslisting'] = array(
'name' => 'Job Listings',
'icon' => 'um-faicon-tasks',
'custom' => true,
);
}
return $listingstab;
}
add_action('um_profile_content_jobslisting_default', 'um_profile_content_jobslisting_default');
function um_profile_content_jobslisting_default( $args ) {
echo do_shortcode('[userjobs]');
}
// Add Job Alerts Tab Only Shows For Candidates While Viewing Their Own Profile Page //
add_filter('um_profile_tabs', 'add_custom_profile_tab7', 11 );
function add_custom_profile_tab7( $alerttab ) {
if ( um_is_myprofile() && ( um_user('role') == 'candidate') ) {
$alerttab['jobalerts'] = array(
'name' => 'Job Alerts',
'icon' => 'um-faicon-exclamation',
'custom' => true,
);
}
return $alerttab;
}
add_action('um_profile_content_jobalerts_default', 'um_profile_content_jobalerts_default');
function um_profile_content_jobalerts_default( $args ) {
echo do_shortcode('[job_alerts]');
}
// Add Job Bookmarks Tab Only Shows For Candidates While Viewing Their Own Profile Page //
add_filter('um_profile_tabs', 'add_custom_profile_tab8', 12 );
function add_custom_profile_tab8( $bookmarks ) {
if ( um_is_myprofile() && ( um_user('role') == 'candidate') ) {
$bookmarks['bookmarks'] = array(
'name' => 'Job Bookmarks',
'icon' => 'um-faicon-bookmark',
'custom' => true,
);
}
return $bookmarks;
}
add_action('um_profile_content_bookmarks_default', 'um_profile_content_bookmarks_default');
function um_profile_content_bookmarks_default( $args ) {
echo do_shortcode('[my_bookmarks]');
}
// Submit Job Tab Which Only Shows For Employers While Viewing Their Own Profile Page //
add_filter('um_profile_tabs', 'add_custom_profile_tab10', 3 );
function add_custom_profile_tab10( $postjob ) {
if ( um_is_myprofile() && ( um_user('role') == 'employer') ) {
$postjob['postjobs'] = array(
'name' => 'Submit Job',
'icon' => 'um-faicon-edit',
'custom' => true,
);
}
return $postjob;
}
add_action('um_profile_content_postjobs_default', 'um_profile_content_postjobs_default');
function um_profile_content_postjobs_default( $args ) {
echo do_shortcode('[submit_job_form]');
}