Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz
// functions.php | |
wp_enqueue_script( 'youtube', 'http://www.youtube.com/player_api', null, null, true ); /* This loads the YouTube IFrame Player API code */ | |
// link, button | |
$url = $link['url']; | |
if ( ! ( $btn_class = $link['class'] ) ) { | |
$btn_class = 'button learn-more'; |
// in footer.php or header.php | |
<div><strong>Current template:</strong> <?php get_current_template( true ); ?></div> | |
// in functions.php | |
/** | |
* Define current template file | |
* | |
* Create a global variable with the name of the current | |
* theme template file being used. | |
* |
<?php | |
$query1 = new WP_Query($arg1); | |
$query2 = new WP_Query($arg2); | |
$query = new WP_Query(); | |
$query->posts = array_merge( $query1->posts, $query2->posts ); | |
// we also need to set post count correctly so as to enable the looping |
// ----------------------------------------------------------------------------- | |
/** | |
* Logging to debug.log in DEBUG_LOG_DIR dir (default is the root site dir) | |
* | |
* Note: In the wp-config.php: | |
* | |
* you need define: | |
* 0) define( 'DEBUG_LOG', true ) | |
* |
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; /*16:9*/ | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, |
Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz
Regular expression for JavaScript:
/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"