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
/** | |
* Display all meta keys for the current post if the 'debug_meta' query string is set | |
* and the site is in debug mode. | |
* | |
* This function is intended to be used on single post pages. It retrieves all meta keys for the | |
* current post and displays them inside a `<div>` element if the 'debug_meta' parameter is present | |
* in the URL and WP_DEBUG is set to true. The meta keys are outputted in a readable format for debugging purposes. | |
* | |
* @return void | |
*/ |
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
if ( defined( 'WP_CLI' ) && WP_CLI ) { | |
/** | |
* Class User_Cleanup_Command | |
* | |
* Custom WP-CLI command to clean up users by comparing their first and last names. | |
*/ | |
class User_Cleanup_Command { | |
/** | |
* Executes the user cleanup command. | |
* |
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
/** | |
* WP-CLI command to move terms associated with a specific custom post type from one taxonomy to another. | |
* | |
* Usage: wp move-terms --source=old_taxonomy --target=new_taxonomy --post_type=my_custom_post_type | |
*/ | |
/** | |
* Moves terms from one taxonomy to another for a specific custom post type. | |
* | |
* ## OPTIONS |
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
<!--start of flex--> | |
<?php | |
if ( have_rows( 'flexible_content' ) ) : | |
while ( have_rows( 'flexible_content' ) ) : the_row(); | |
if ( 'info_left_quicklinks_right' === get_row_layout() ) : | |
get_template_part( 'flex-parts/flex', 'caption-w-buttons' ); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Last login: Mon Dec 19 23:03:45 on ttys000 | |
✔ ~ | |
23:04 $ pwd | |
/Users/XXXXXXXX | |
✔ ~ | |
23:04 $ ls | |
Applications Library VirtualBox VMs | |
Creative Cloud Files Movies bin | |
Desktop Music vagrant-local | |
Documents Pictures wpcs |