This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//javascript | |
var developer = <?php echo $parsed_array_to_json; ?>; | |
//access the value. | |
console.log(developer.name, developer.age, developer.job); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$parsed_array_to_json = json_decode($developer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$developer = array("name"=>"alia", "job"=>"freelancer", "age"=>"30"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. create the folder of the year in your wordpress project folder | |
mkdir -p /project_folder/wp-content/uploads/2020 | |
# 2. then create child folders for every month!!!!! | |
#this is for 01-09 | |
for i in {1..9}; do mkdir -p /project_folder/wp-content/uploads/2020/0$i; done | |
#this is for 10-12 | |
for i in {0..2}; do mkdir -p /project_folder/wp-content/uploads/2020/1$i; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init_tel(){ | |
$utils_url = plugins_url('/js/utils.js', __FILE__); | |
?> | |
<script> | |
var input = document.querySelector("#phone"); | |
var iti = window.intlTelInput(input,{ | |
utilsScript: "<?php echo $utils_url; ?>", | |
// the countries at the top of the list. defaults to united states and united kingdom | |
preferredCountries: [ "my", "us", "gb" ], | |
autoPlaceholder: null, |
NewerOlder