UIKit Preloader JS
;(function ($) { $(document).on(‘ready’, function(){ if($(‘#global-preloader’)) return $(‘#global-preloader’).fadeOut(500); }); })(jQuery);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
;(function ($) { $(document).on(‘ready’, function(){ if($(‘#global-preloader’)) return $(‘#global-preloader’).fadeOut(500); }); })(jQuery);Continue reading
/** * Plugin Name: Elite Web Labs Newsletters * Description: A plugin that allows for sending newsletters when publishing posts * Version: 1.0.4 * Author: Thomas Senecal * License: GPL-2.0+ * Text Domain: newsletter */ // If this file is…Continue reading
add_filter( ‘wfea_combined_date_time_date_format’, function ( $format ) { return ‘F j,Y @ H:i’; } , 999 );Continue reading
add_filter( ‘wpcode_pixel_event_name_facebook’, function ( $event_name, $event_key ) { if ( ‘purchase’ === $event_key ) { return ‘Subscribe’; } return $event_name; }, 10, 2 );Continue reading
echo ‘The current logged in user ID is: ‘.get_current_user_id(); echo ; $all_meta_for_user = get_user_meta( get_current_user_id() ); print_r( $all_meta_for_user ); echo ; $last_name = $all_meta_for_user[‘last_name’][0]; echo ; echo ‘Last name:’.$last_name;Continue reading
add_filter(‘comments_open’, function ($open, $post_id) { $post = get_post($post_id); if ($post->post_type == ‘event’) { return false; } return $open; }, 10, 2);Continue reading
add_filter( ‘qem_event_register’, /** * @param $args https://developer.wordpress.org/reference/functions/register_post_type/#parameters * * @return array */ function ( $args ) { $args[‘rewrite’] = array( ‘slug’ => ‘my_custom_event_slug’ ); return $args; }, 10, 1 );Continue reading
add_filter( /** * * Filter the decision to send an admin confirmation or not * * @param $bool * * @return bool overrides any logic if set to true, if set to false then standard rules apply */ ‘qem_registration_always_confirm_admin’, function…Continue reading
add_filter( /** * * Filter the decision to send a confirmation or not * * @param $bool * * @return bool overrides any logic if set to true, if set to false then standard rules apply */ ‘qem_registration_always_confirm’, function (…Continue reading