add_action( ‘gform_stripe_customer_after_create’, ‘save_stripe_customer_id_to_entry’, 10, 2 ); function save_stripe_customer_id_to_entry( $customer, $feed ) { global $entry; // Save the Stripe customer ID to the entry if the user is not logged in if ( !is_user_logged_in() && isset( $customer->id ) && !empty( $customer->id…Continue reading
php_value memory_limit 256MContinue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
//Upcoming ONLY add_shortcode(‘UpcomingEvent’,’UpcomingEventAPI’); function UpcomingEventAPI($atts){ $atts = shortcode_atts(array(‘url’ => ”, ‘post-slug’ => ”, ‘tax-slug’ => ”, ‘tax-cat-id’ => ”, ‘icon’ => ”, ‘font-color’ => ” ), $atts, ‘featuredPost’); $response = wp_remote_get($atts[‘url’].’/wp-json/wp/v2/’.$atts[‘post-slug’].’?’.$atts[‘tax-slug’].’=’.$atts[‘tax-cat-id’].’&order=desc&per_page=1′, array( ‘timeout’ => 30 )); $response_body = json_decode($response[‘body’]); $content…Continue reading
// FEATURED CAREERS – WHY SPROUT MENU $date = date(‘Y-m-01’,strtotime(‘-6 month’)); $response = wp_safe_remote_get( ‘https://api.resumatorapi.com/v1/jobs/status/open/from_open_date/’.$date.’/?apikey=lnxTEuaoRaVG9JfKuYun1Nt6TY5rKzkp’, array( ‘timeout’ => 30 )); $responseBody = json_decode($response[‘body’]); $content = ”; foreach($responseBody as $index => $value){ if($index < 4){ $content .= ' ‘; if(empty($value->city) ||…Continue reading
// Get the taxonomy’s terms $terms = get_terms( array( ‘taxonomy’ => ‘core-hr’, ) ); // Check if any term exists if ( ! empty( $terms ) && is_array( $terms ) ) { // Run a loop and print them all…Continue reading
// Get the taxonomy’s terms $terms = get_terms( array( ‘taxonomy’ => ‘core-hr’, ) ); // Check if any term exists if ( ! empty( $terms ) && is_array( $terms ) ) { // Run a loop and print them all…Continue reading
if(the_field(‘testimonial_quote’) != ”){ echo (the_field(‘testimonial_quote’)); }Continue reading
if(the_field(‘testimonial_designation’) != ”){ echo (the_field(‘testimonial_designation’)); }Continue reading
echo ‘ ‘; echo ‘‘ . get_the_title() . ‘‘; echo ‘ ‘;Continue reading