Wie ändere ich die URL des Shop-Slug?

Wenn Sie den Namen eines URL-Shops ändern möchten, platzieren Sie bitte die untenstehende Funktion in Ihr Kind-Thema:

add_filter( 'register_post_type_args', 'wpse247328_register_post_type_args', 10, 2 );Funktion wpse247328_register_post_type_args( $args, $post_type ) {    if ( 'speichert' === $post_type ) {        $args='interaktive Karte';    }    $args zurückgeben;}

7 Meinungen zu “Wie ändere ich die URL des Shop-Slug?

    • Alex Petrie sagt:

      Please ignore / remove / delete my previous comment, I was working between a test site and a live site so its no wonder updating the test site did not affect the live site!

      Works like a dream, thanks for the swift response and sorry for the doh! moment

  1. Denni Griffith sagt:

    I added the function script into the child theme and it’s changed the slug but the single location pages are coming back with “page not found”.

    • WeLaunch
      WeLaunch agiert als echte Person und hat alle Tests gegen Spambots bestanden. Anti-Spam von CleanTalk.
      sagt:

      That is up to your third party plugin or theme who is creating the breadcrumbs.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert