Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
imranhsayed committed Apr 25, 2021
1 parent dc9f460 commit 8bd1324
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions headless-cms.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,3 @@ function headless_cms_features_plugin_loader() {
}

headless_cms_features_plugin_loader();



//function hello() {
//
// if ( !class_exists('WooCommerce') ) {
// return [];
// }
//
// $countries_with_country_codes = WC()->countries;
// $all_countries = WC()->countries->get_states();
// $countries_with_states = [];
//
// if ( empty( $all_countries ) && !is_array( $all_countries ) ) {
// return [];
// }
//
// foreach ( $all_countries as $country_code => $states ) {
// if ( ! empty( $states ) ) {
// $countries_with_states[$country_code] = $country_code;
// }
// }
//
// echo '<pre/>';
// print_r($countries_with_country_codes);
// wp_die();
//}
//
//add_action('init', 'hello' );

0 comments on commit 8bd1324

Please sign in to comment.