Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kim White

    (@kimwhite)

    Hello @subwebsites, the instructions are included when you are logged into the site with membership access.

    You can add this function to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/

    If you require additional assistance, I recommend contacting a local WordPress developer.

    function my_set_pmpro_default_country( $default_country ) {
        // Set country code to "GB" for United Kingdom.
        $default_country = "GB";
        return $default_country;
    }   
    add_filter( 'pmpro_default_country', 'my_set_pmpro_default_country' );

    I hope this information is helpful to you.
    Kim W

    Plugin Support Kim White

    (@kimwhite)

    There have not been any recent updates to this topic, we will be changing the status to resolved. If you have any new questions or if your issue persists, please feel free to create a new topic.

    Kim W

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No instruction for Default country’ is closed to new replies.