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
/** | |
* get filters attach to specific hook | |
* eg. the_filters("the_title"); | |
*/ | |
function the_filters($hook = '') { | |
global $wp_filter; | |
if (empty($hook) || !isset($wp_filter[$hook])) | |
return; | |
echo '<pre>'; |
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
User-agent: * | |
Disallow: | |
Disallow: /blackhole/* | |
Disallow: /cgi-bin/ | |
Disallow: /bin/ | |
Disallow: /wp-includes/ | |
Disallow: /wp-content/ | |
Disallow: /wp-admin/ | |
Disallow: /app/ |
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
mysqldump -u[user] -p[password] [dbname]| gzip --best -c > [dbname].sql.gz && (date && echo "[mail subjext]" && uuencode [dbname].sql.gz ) | mail [mail] -s "[mail subjext]" |
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
{ | |
"require": { | |
"monolog/monolog": "1.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
<?php | |
/** | |
* parent metabox implementation | |
*/ | |
// hook | |
add_action( 'add_meta_boxes', 'CustomMetabox_setup' ); | |
/** |
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
Options All -Indexes | |
<files .htaccess> | |
Order allow,deny | |
Deny from all | |
</files> | |
<files wp-config.php> | |
Order allow,deny | |
Deny from all |
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
pear config-set auto_discover 1 | |
pear clear-cache | |
pear update-channels | |
pear remote-list | |
pear upgrade pear | |
pear -V |
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
if ( !class_exists( 'RequirePlugins' ) ): | |
class RequirePlugins { | |
private $require_plugins = array(); | |
private $miss_plugins = array(); | |
private $found_plugins = array(); | |
function __construct( $require_plugins = null ) { | |
if (is_array( $require_plugins )) { |
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 | |
/* | |
* Mvd_FormFields | |
* Helper Class to render html form element width WordPress data | |
* NOTE: Designed for use with WordPress | |
* @author Maurizio Pelizzone | |
* @link http://maurizio.mavida.com | |
* @license: GPLv2 or later | |
* @License URI: http://www.gnu.org/licenses/gpl-2.0.html |