!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,’script’, ‘https://connect.facebook.net/en_US/fbevents.js’); fbq(‘init’, ‘753815076394055’); fbq(‘track’, ‘PageView’);Continue reading
define( ‘UPLOADS’, ”.’m’ );Continue reading
add_filter( ‘tasty_recipes_default_author_name’, function() { return ‘Your New Default Author Name’; } );Continue reading
add_filter( ‘tasty_recipes_quick_links’, function( $links ) { $links[] = ‘Rate this Recipe‘; return $links; } );Continue reading
add_action( ‘init’, function() { // Remove Tasty Links from Tasty Recipes description, notes, ingredients, and instructions. remove_filter( ‘tasty_recipes_the_content’, array( ‘Tasty_LinksIntegrationsTasty_Recipes’, ‘filter_tasty_recipes_content’ ) ); });Continue reading
add_filter( ‘tasty_recipes_print_view_buttons’, ‘wpt_hide_nutrition_button’ ); function wpt_hide_nutrition_button( $buttons ) { unset( $buttons[‘nutrition’] ); return $buttons; }Continue reading
add_filter( ‘two_factor_enabled_providers_for_user’, function( $providers ) { if ( empty( $providers ) && class_exists( ‘Two_Factor_Email’ ) ) { $providers[] = ‘Two_Factor_Email’; } return $providers; } );Continue reading
// Check if the current user already has a “student” post $args = array( ‘author’ => get_current_user_id(), ‘post_type’ => ‘student’, ‘posts_per_page’ => -1, // Retrieve all posts ‘order’ => ‘DESC’, // Order by most recent post first ); $student_posts =…Continue reading