• Resolved exitmode

    (@exitmode)


    Hello Guys,

    where can I change the Employment Types at the Backend?

    Thank you,
    warm regards,
    Exitmode

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Adam Heckler

    (@adamkheckler)

    Under Job Listings > Job Types.

    Thread Starter exitmode

    (@exitmode)

    Hi Adam,

    No I mean the Words.

    How can I change / edit the list:
    – Fulltime
    – Internship
    ….

    Its not in German and I only need 4-5 types.

    Thread Starter exitmode

    (@exitmode)

    Wp Job Manager has soo few functions to work with it.

    Any thing must be coded… it’s not for normal users.

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    > No I mean the Words. How can I change / edit the list

    You can do this under Job Listings > Job Types. Just hover over a type and click the Edit link to edit it. Screenshot:

    http://d.pr/i/AL0X74/2GAp7gTQ

    Thanks!

    Thread Starter exitmode

    (@exitmode)

    Nooo i mean the Dropdown!

    The dropdown isn’t editable:

    View post on imgur.com

    Where can I edit this List?!

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    That is controlled here:

    https://github.com/Automattic/WP-Job-Manager/blob/1.29.1/wp-job-manager-functions.php#L665-L684

    You can add a new one like so:

    add_filter( 'wpjm_job_listing_employment_type_options', 'akh_add_new_wpjm_employment_type' );
    
    function akh_add_new_wpjm_employment_type( $employment_types ) {
    	$employment_types['EXAMPLE'] = __( 'Example', 'wp-job-manager' );
    	return $employment_types;
    }

    Editing or removing you can do using PHP’s unset() or just overwriting whatever array item you want to change.

    • This reply was modified 6 years, 10 months ago by Adam Heckler.
    • This reply was modified 6 years, 10 months ago by Adam Heckler.
    Thread Starter exitmode

    (@exitmode)

    Where can I edit this to save this for upcoming updates?

    I have a active Child Theme. Can I put this lines in a new file?

    Iam not a Developer. I know where the lines are, but.. when I change this lines… nothing happen…

    Dont know why..

    Sorry – I did not found my Topic… 😀

    Thread Starter exitmode

    (@exitmode)

    Can I put this only in my Child Theme “functions.php” ?

    Thread Starter exitmode

    (@exitmode)

    How can I overwrite the delivered Employment Types or Delete completely?

    • This reply was modified 6 years, 9 months ago by exitmode.
    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Can I put this only in my Child Theme “functions.php” ?

    Yes, or you can use a plugin like Code Snippets:

    https://wordpress.org/plugins/code-snippets/

    How can I overwrite the delivered Employment Types or Delete completely?

    To overwrite one, just add a different string to the same array element, based off the code I gave you above. Like so:

    add_filter( 'wpjm_job_listing_employment_type_options', 'akh_add_new_wpjm_employment_type' );
    
    function akh_add_new_wpjm_employment_type( $employment_types ) {
    	$employment_types['FULL_TIME'] = __( 'Different Text', 'wp-job-manager' );
    	return $employment_types;
    }

    To disable:

    add_filter( 'wpjm_job_listing_employment_type_options', 'akh_add_new_wpjm_employment_type' );
    
    function akh_add_new_wpjm_employment_type( $employment_types ) {
    	unset $employment_types['FULL_TIME'];
    	return $employment_types;
    }

    I haven’t tested those myself, but they should work. If you need further help with custom code, you may want to look into one of these services for help:

    https://codeable.io/?ref=l1TwZ

    http://studio.envato.com/

    https://jobs.wordpress.net/

    Thanks!

    Thread Starter exitmode

    (@exitmode)

    Danke Adam für deine Hilfe!

    Zu deinen Tips:

    Das Problem ist, dass Ihr den WP Job Manager nicht weit ausgebaut habt und diesen trotzdem jedem zur Verfügung stellt. Ihr baut Funktionen ein, die gefestigt sind und man diese auch nicht bearbeiten kann.

    Also wie soll ich als normaler “Benutzer” mir mal eben was zurecht basteln?

    Wenn man selbst noch Geld rein investieren muss, um den WP Job Manager auszubauen oder weiterzuentwickeln, dann solltet ihr den WP Job Manager umbenennen:

    Develop Job Manager

    oder

    WP Job Manager – only for Developers

    Oder anders: Das, was ein deutscher WP “Entwickler” / “Coder” kostet.. dafür kann ich WordPress neu entwickeln lassen…

    Trotzdem Danke für deine Unterstützung, ich habe was ich brauche!

    Weiter gehts in den anderen Threads.

    Thread Starter exitmode

    (@exitmode)

    add_filter( ‘wpjm_job_listing_employment_type_options’, ‘akh_add_new_wpjm_employment_type’ );

    function akh_add_new_wpjm_employment_type( $employment_types ) {
    unset $employment_types[‘FULL_TIME’];
    return $employment_types;
    }

    Errorwarning:

    Deine PHP-Code-Änderungen wurden aufgrund eines Fehlers in Zeile 30 der Datei wp-functions.php zurückgesetzt. Bitte beheben und versuchen, erneut zu speichern.
    syntax error, unexpected ‘$employment_types’ (T_VARIABLE), expecting ‘(‘

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Oops! Try this:

    function akh_add_new_wpjm_employment_type( $employment_types ) {
    	unset( $employment_types[‘FULL_TIME’] );
    	return $employment_types;
    }
    Thread Starter exitmode

    (@exitmode)

    Danke! =)

    Thread Starter exitmode

    (@exitmode)

    unset will not work!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Employment Types – Change?!’ is closed to new replies.