File states for France?

Front Page Forums General File states for France?

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #16182
      maxtrend
      Participant

      Hello,
      I saw that the stastes file for France is missing.
      Folder:
      erp/i18n/states

      in the insertion of the French contact do not leave the departments, the select is empty.
      is it possible to have it?
      Thanks
      Cesare

    • #16324
      maxtrend
      Participant

      can anyone help me?

    • #16414
      Shawon Chowdhury
      Moderator

      @maxtrend,
      You can use this filter to add additional states.

      add_filter( ‘erp_states’, function ( $states ) {

      $states[‘FR’] = [
      ‘A’ => ‘Anything’, // Add the states here.
      ‘B’ => ‘Bestthing’,
      ‘ZH’ => ‘Zuid-Holland’,
      ];

      return $states;
      } );

      Add this part to your theme’s function.php or use a child theme.

      Thanks 🙂

    • #16415
      maxtrend
      Participant

      Thanks Shawon!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your message

We will reach you with your email address soon. Thank you for the time!