1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
#!/bin/bash | |
# Configuration variables - replace with your values | |
REMOTE_HOST="[email protected]" | |
REMOTE_PATH="files" | |
LOCAL_PATH="wp-content" | |
# Database name | |
TIMESTAMP=$(date +%Y%m%d_%H%M%S) | |
DB_BACKUP="wp_backup_${TIMESTAMP}.sql" |
<?php | |
/** | |
* Update next payment date for subscriptions. | |
* Run this script using WP CLI: | |
* $ wp eval-file update_next_payment.php | |
*/ | |
$subs = [ | |
// ids of subscriptions to update | |
]; |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |