This file contains 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 | |
/** | |
* When a class extends this, this will use PHP reflection to automatically register actions and filters | |
* Note that this class cannot be instantiated, it is marked as abstract | |
* | |
* In order to add a method as a filter, simply name it as `filter_FILTERNAME`. For example: `filter_body_class` will add that method as a hook for the filter 'body class' | |
* The same applies to actions, but the naming changes to `action_ACTIONNAME`. For example: `action_widgets_init` | |
*/ | |
abstract class Autohook { | |
public function __construct() { |
This file contains 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 | |
# Força saída caso ocorra um erro | |
set -e | |
echo $(date) - Starting update process | |
# Muda para o diretório de execução | |
cd ~/kingdomage-build/kingdom-age-site |