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 | |
/* OPEN A STD OUT STREAM, THIS IS BETTER THEN ECHOING | |
* BECAUSE THERE IS NO BUFFERING | |
* *********************************************************************/ | |
$stdout = fopen( 'php://stdout', 'w' ); | |
// Starting Processing Designator | |
fwrite( $stdout, "========== BACKUP ==========\n" ); | |
/* Use the Autoload from Composer |
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 | |
$args = array( | |
'post_parent' => $variable_id, | |
'post_type' => 'product_variation', | |
'orderby' => 'price', | |
'order' => 'ASC', | |
'fields' => 'ids', | |
'post_status' => 'publish', | |
'numberposts' => 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
#! /bin/bash | |
# COPY LOCAL FOLDER ON REMOTE HOST | |
FTP_USER="username" | |
FTP_HOST="server.host.baz" | |
REMOTE_PATH="/path/to/apps" | |
FOLDER="app_foo" |