- gaa
git add --all(sames as -A) - gcam "my commit message"
git commit -a -m - ggp
git push origin $(current_branch) - gco {master}
git checkout - gpoat
git push origin --all && git push origin --tags - gst
git status - gb
git branch
| /** | |
| * Order person achive results A-Z by last name | |
| */ | |
| function baindesign324_reorder_posts_person( $query ) { | |
| if( isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == 'cpt1' ) { | |
| $query->set('orderby', 'meta_value'); | |
| $query->set('meta_key', 'last_name'); | |
| $query->set('order', 'ASC'); | |
| } | |
| } |
| <?php | |
| if ( get_theme_mod( 'baindesign324_work_archive_title', '' ) ) { | |
| echo get_theme_mod( 'baindesign324_work_archive_title', '' ); | |
| } else { | |
| echo post_type_archive_title(); | |
| } |
| <?php // Language Switcher | |
| // Uses WPML plugin | |
| if ( class_exists( 'SitePress' ) && function_exists( 'baindesign324_languages_list' ) ) { | |
| echo '<div id="switcher">'; | |
| baindesign324_languages_list(); | |
| echo '</div>'; | |
| } | |
| ?> |
| // Algolia filters | |
| add_filter('algolia_post_images_sizes', function($sizes) { | |
| $sizes[] = 'latest_post'; | |
| return $sizes; | |
| }); |
tar --exclude='wp-content/uploads/backupbuddy_backups' --exclude='wp-content/uploads/backwpup-4a2f83-backups' --exclude='wp-content/uploads/backupbuddy_temp' --exclude='wp-content/uploads/2018/09' --exclude='wp-content/uploads/2018/08' --exclude='wp-content/uploads/2018/07' --exclude='wp-content/uploads/2018/06' --exclude='wp-content/uploads/2018/05' --exclude='wp-content/uploads/2018/04' --exclude='wp-content/uploads/2018/03' --exclude='wp-content/uploads/2018/02' --exclude='wp-content/uploads/2018/01' --exclude='wp-content/uploads/2017' --exclude='wp-content/uploads/2016' --exclude='wp-content/uploads/2015' --exclude='wp-content/uploads/2014' --exclude='wp-content/uploads/2013' --exclude='wp-content/uploads/2012' -zcvf wp-content-prod.tar.gz wp-content
| http://exygy.com/run-one-time-wordpress-script/ |
| <?php | |
| $dir = dirname(__FILE__); | |
| echo "<p>Full path to this dir: " . $dir . "</p>"; | |
| echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>"; | |
| ?> |
| # ========================= | |
| # Various | |
| # ========================= | |
| node_modules | |
| bower_components | |
| .sass-cache | |
| import | |
| export | |
| scripts |