/** * Registriert ACF Optionsseiten. */ //ACF OPTIONS PAGE if( function_exists(‘acf_add_options_page’) ) { acf_add_options_page(‘Algemene instellingen’); acf_add_options_page(‘Actieproduct’); acf_add_options_page(‘Actie balk header’); acf_add_options_page(‘Best Selling Products’); }Continue reading
/** * Registriert Footer- und Sidebar-Widget-Bereiche. */ function tutsplus_widgets_init() { // First footer widget area, located in the footer. Empty by default. register_sidebar( array( ‘name’ => __( ‘First Footer Widget Area’, ‘tutsplus’ ), ‘id’ => ‘first-footer-widget-area’, ‘description’ => __( ‘The…Continue reading
/** * Product Slider Shortcode [product_shortcodes] */ function product_shortcodes(){ ob_start(); $query = new WP_Query( array( ‘post_type’ => ‘product’ , ‘posts_per_page’ => ’30’ , ‘orderby’ => ‘ASC’) ); $i=1; if ( $query->have_posts() ) : ?>Continue reading
/** * Block form submissions based on IP address * * @link https://www.seoinc.com/contact-us/ */ function wpf_ip_block( $fields, $entry, $form_data ) { // Get the current users IP address $ip_address = wpforms_get_ip(); // List out the IP addresses separated by a…Continue reading
add_filter( ‘mepr-thankyou-page-url’, function( $url, $args ) { if( isset( $_POST[ ‘mepr_company_size’ ] ) && $_POST[ ‘mepr_company_size’ ] === ‘500+’ ) { return ‘https://mydomain.com/’; } return $url; }, 10, 2 );Continue reading
function mepr_exclude_sub_accounts( $atts, $content = “” ) { $user = MeprUtils::get_currentuserinfo(); if ($user === false) { return; } $ca_uuid = get_user_meta( $user->ID, ‘mpca_corporate_account_id’, true ); // If $ca_uuid has a value, in other words, not empty, then it’s a sub…Continue reading
add_shortcode( ‘mepr-membership-members’, function( $attributes ) { global $wpdb; // Check if a valid membership ID is provided if( isset( $attributes[‘id’] ) && is_numeric( $attributes[‘id’] ) ) { $membership_id = (int) $attributes[‘id’]; } else { return; // Return nothing if no…Continue reading
function auto_set_featured_image() { global $post; if (!has_post_thumbnail() && $post->post_type == ‘post’) { $attached_image = get_children(“post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1”); if ($attached_image) { foreach ($attached_image as $attachment_id => $attachment) { set_post_thumbnail($post->ID, $attachment_id); break; } } } } add_action(‘save_post’, ‘auto_set_featured_image’);Continue reading
Welcome to Eckankar NJ Welcome to Eckankar in New Jersey Join free events and explore spiritual freedom.Continue reading
function wpb_copyright() { global $wpdb; $copyright_dates = $wpdb->get_results(” SELECT YEAR(min(post_date_gmt)) AS firstdate, YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts WHERE post_status = ‘publish’ “); $output = ”; if($copyright_dates) { $copyright = “© ” . $copyright_dates[0]->firstdate; if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) { $copyright .= ‘-‘…Continue reading