Let's say you want to host domains first.com and second.com.
Create folders for their files:
| $url = 'https://www.youtube.com/watch?v=08f0tiLdk7w'; //a youtube video url | |
| $autoembed = new WP_Embed(); //initialize the wordpress oEmbed helper class | |
| $content = $autoembed->autoembed($url); //let's parse the url and get the embeded content |
| <?php | |
| add_action( 'woocommerce_customer_save_address', 'jsforwp_update_address_for_orders', 10, 2 ); | |
| function jsforwp_update_address_for_orders( $user_id ) { | |
| $customer_meta = get_user_meta( $user_id ); | |
| $customer_orders = get_posts( array( | |
| 'numberposts' => -1, | |
| 'meta_key' => '_customer_user', |
| version: '3.7' | |
| services: | |
| mysql: | |
| image: mariadb | |
| ports: | |
| - '3306' | |
| environment: | |
| MYSQL_ROOT_PASSWORD: password | |
| MYSQL_DATABASE: wordpress | |
| volumes: |