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/sh | |
echo "rsync starting..." | |
SOURCE_DIR="/source/dir/with/final/backslash/" | |
TARGET_ADDRESS="127.0.0.1" | |
TARGET_DIR="/dir/with/final/backslash/" | |
TARGET_USER="remote-ssh-user" | |
RSYNC_ARGS='-vrltD --delete --stats --human-readable' | |
TODO=$(find ${SOURCE_DIR} | wc -l) | |
echo "found ${TODO} files, syncing..." |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Matteo | |
* Date: 04/07/2018 | |
* Time: 12:52 | |
*/ | |
/** | |
* Class ACFToArray |
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 | |
/** | |
* Class ACFToArray | |
* Used to offer a better performance experience on frontend, while maintaining the same old ACF structure | |
*/ | |
class ACFToArray { | |
const DB_FIELD_PREFIX = 'acf_array_'; | |
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
/** | |
* Class ACFToArray | |
* Used to offer a better performance experience on frontend, while maintaining the same old ACF structure | |
*/ | |
class ACFToArray { | |
const DB_FIELD_PREFIX = 'acf_array_'; | |
protected function __construct() { | |
add_action( 'acf/save_post', array( $this, 'saveTotalArray' ), 20 ); |