<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>
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
https://yoursite.com/wp-login.php?action=enter_recovery_mode |
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
<?php | |
/** Season - Custom taxonomy added to product **/ | |
add_action( 'init', 'custom_taxonomy_season' ); | |
function custom_taxonomy_season() { | |
$labels = array( | |
'name' => 'Season', | |
'singular_name' => 'Season', | |
'menu_name' => 'Season', | |
'all_items' => 'All Seasons', | |
'parent_item' => 'Parent Item', |
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
<?php | |
/** | |
* Remove admin bar | |
**/ | |
add_filter('show_admin_bar', '__return_false'); | |
?> |
| With border | With box-shadow | | border: 1px solid red | box-shadow: inset 0 0 0 -1px red | | border-top: 1px solid red | box-shadow: inset 0 1px 0 0 red | | border-right: 1px solid red | box-shadow: inset -1px 0 0 red | | border-bottom: 1px solid red | box-shadow: inset 0 -1px 0 0 red | | border-left: 1px solid red | box-shadow: inset 1px 0 0 red |
use command line to make images smalled dimensions https://guides.wp-bullet.com/batch-resize-images-using-linux-command-line-and-imagemagick/ https://www.howtogeek.com/109369/how-to-quickly-resize-convert-modify-images-from-the-linux-terminal/
dig website.com @8.8.8.8 MX
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
$( ".selector" ).datepicker( "destroy" ); | |
$( ".selector" ).datepicker( { | |
// ... new instant | |
dateFormat: "dd/mm/yy", | |
minDate: "+1" | |
}); |
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
$('.selector').datepicker({ | |
onSelect: function(dateText, inst) { | |
console.log(dateText + " has been selected!"); | |
} | |
}); |
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
document.getElementById("myBtn").addEventListener("click", function(){ | |
document.getElementById("demo").innerHTML = "Hello World"; | |
}); | |
document.getElementById("myBtn").addEventListener("click", myFunction); | |
function myFunction() { | |
document.getElementById("demo").innerHTML = "Hello World"; | |
} |