Country list filter
-
Hello.
You have a filter for states:
echo apply_filters( ‘yikes-mailchimp-state-province-list’, $state_and_province_list, $form_id );but countries are loaded directly from the file:
<select <?php echo implode( ‘ ‘ , $field_array ); ?> data-country=”true”>
<?php include( YIKES_MC_PATH . ‘public/partials/shortcodes/templates/country-dropdown.php’ ); ?>
</select>There are like 244 countries and not always all of them are needed. Moreover, sometimes we need to limit to particular countries. Also, google pagespeed flags nodes with more than 60 child nodes (https://web.dev/dom-size/?utm_source=lighthouse).
It would be nice to have a filter to limit countries options.
Thank you.
The topic ‘Country list filter’ is closed to new replies.