Support » Plugin: Ultimate Member & Job Manager » Questions

  • Resolved paxton111

    (@paxton111)


    Hi,

    Great plugin thank you!

    I have few questions and suggestion:

    Is it possible to change the texts? I want to rename “Job Manager” on the tab to “Manage Listings”. And i also want to change the text of “Job Dashboard”, “Jobs” and “Post a Job” to something else. Is it possible to achieve this with SayWhat plugin? If not can you please explain me how to change the texts?

    Also how can I remove “Jobs” under the “Job Manager” tab?

    Suggestion – It would be great to associate “Job Manager” tab to the specific UM role.. To have an option to show the “Job Manager” tab on the profiles of certain roles…

    Thank you!

    https://wordpress.org/plugins/ultimate-member-job-manager/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Kishores

    (@kishores)

    For those thing I will give option in next release.

    Is it possible to change the texts? I want to rename “Job Manager” on the tab to “Manage Listings”. And i also want to change the text of “Job Dashboard”, “Jobs” and “Post a Job” to something else. Is it possible to achieve this with SayWhat plugin? If not can you please explain me how to change the texts?

    Also how can I remove “Jobs” under the “Job Manager” tab?

    Can you explain more in details please?
    Suggestion – It would be great to associate “Job Manager” tab to the specific UM role.. To have an option to show the “Job Manager” tab on the profiles of certain roles…

    Plugin Author Kishores

    (@kishores)

    Yes you can use this plugin for the time being
    https://wordpress.org/plugins/say-what/

    For example, if there are two UM roles on the site “members A” and “members B”. So, to be able to associate the tab “Job Manager” to for example, with “Members A” and turn off the “Job Manager” tab for “members B”.
    Not all member roles on the site are not publishing listings so those who are not publishing will find it confusing….

    Hi, I also need this option.
    Only show “Post Job” if user is logged in with a certain role.

    Thanks,

    Julien

    Plugin Author Kishores

    (@kishores)

    Hey please check this thread
    https://wordpress.org/support/topic/does-what-it-says-wellkinda?replies=8#post-

    /***
    *** @add tabs based on user
    ***/
    add_filter(‘um_user_profile_tabs’, ‘um_job_dashboard_user_add_tab’, 1000 );
    function um_job_dashboard_user_add_tab( $tabs ) {

    if ( ! current_user_can(‘special_role’)) {unset( $tabs[‘job_manager’][‘subnav’][‘post_a_job’] ); }
    return $tabs;

    }

    You need to add in theme function file

    Thanks for that lightening fast answer! Its very appreciated.
    No problem to ad it to functions.php.
    However may I ask where I specify the role(s) for which it is visible?
    Thanks

    Julien

    Hi again, I implemented the code, but I didnt explain well, I apologize. What I am trying to do is have this plugin as a whole appear only for a certain role.
    Thanks

    Plugin Author Kishores

    (@kishores)

    /***
    ***	@add tabs based on user
    ***/
    add_filter('um_user_profile_tabs', 'um_job_dashboard_user_add_tab', 1000 );
    function um_job_dashboard_user_add_tab( $tabs ) {
        if ( ! current_user_can('special_role')) { // if user does not have access right
              unset( $tabs['job_manager']['subnav']['post_a_job'] ); // code to remove
        }
    return $tabs;
    
    }

    Can you explain me again. please

    What I am trying to do is have Ultimate Member Job Manager plugin only appear for a specific role.
    Thanks!
    Julien

    Plugin Author Kishores

    (@kishores)

    /***
    ***	@add tabs based on user
    ***/
    add_filter('um_user_profile_tabs', 'um_job_dashboard_user_add_tab', 100 );
    function um_job_dashboard_user_add_tab( $tabs ) {
    	unset( $tabs['job_manager']['subnav']['post_a_job'] ); // now unset the tab
    	if ( get_current_user_id() == um_profile_id() && current_user_can('special_role') ) {
    		$tabs['job_manager']['subnav']['post_a_job'] = __('Post a Job','ultimate-member-job-manager'); // again set
    	}
    	return $tabs;
    
    }

    Please replace “special_role” with your custom role

    Thanks very much for your answer. It didnt work for me, the plugin still appears for all roles.
    I tried with both the UM role and the WP role.
    But I dont mean to be demanding, you have done enough already.
    Thanks again,
    J.

    Plugin Author Kishores

    (@kishores)

    Please paste your code. It works in my local

    /***
    *** @add tabs based on user
    ***/
    add_filter(‘um_user_profile_tabs’, ‘um_job_dashboard_user_add_tab’, 100 );
    function um_job_dashboard_user_add_tab( $tabs ) {
    unset( $tabs[‘job_manager’][‘subnav’][‘post_a_job’] ); // now unset the tab
    if ( get_current_user_id() == um_profile_id() && current_user_can(‘UMCustomer’) ) {
    $tabs[‘job_manager’][‘subnav’][‘post_a_job’] = __(‘Post a Job’,’ultimate-member-job-manager’); // again set
    }
    return $tabs;

    }

    Plugin Author Kishores

    (@kishores)

    Well may be problem with the user role
    current_user_can(‘UMCustomer’). Is this role exist “UMCustomer”? Please try some another role like current_user_can( ‘author’ ). and let me know whether it works or not.

    Please check this.
    http://stackoverflow.com/questions/13404284/wordpress-capabilities-and-current-user-can-in-functions-php

    https://support.woothemes.com/hc/en-us/articles/202203989-Apply-different-tax-rates-based-on-the-customer-role

    Yes that is a Ultimate Member role. I also tried with the wordpress role, and it doesnt work either, I will paste example now

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Questions’ is closed to new replies.