I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
flex-flow:column-reverse wrap-reverse; | |
justify-content:center; | |
align-content:space-between; |
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
add_action('post_submitbox_misc_actions', createCustomField); | |
add_action('save_post', saveCustomField); |
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
/** | |
* Filter team products from main shop only on frontend on shop, category, and tag archives | |
*/ | |
function exclude_team_products( $query ) { | |
$archive_query = $query->is_post_type_archive('product') && $query->is_main_query(); | |
$cat_tag_query = $query->is_tax( array('product_cat', 'product_tag') ) && $query->is_main_query(); | |
if ( !is_admin() && $archive_query || !is_admin() && $cat_tag_query ) { | |
$taxquery = array( | |
array( | |
'taxonomy' => 'product_team', |
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 | |
add_filter( 'account_page_form_fields', function ( $fields ) { | |
if ( ! wp_verify_nonce( $_POST['account_update_nonce'], 'verify_account_form' ) ) { | |
return $fields; | |
} | |
/** | |
* Changed this array to the field keys (wpum_ is the prefix) | |
*/ |