Expose login state for GTM
// Expose login state for GTM add_action(‘wp_head’, function() { if ( is_user_logged_in() ) { echo ““; } else { echo ““; } });Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Expose login state for GTM add_action(‘wp_head’, function() { if ( is_user_logged_in() ) { echo ““; } else { echo ““; } });Continue reading
add_filter( ‘pp_offcanvas_body_inner_wrap’, ‘__return_false’ );Continue reading
add_filter( ‘aioseo_redirects_log_skip’, ‘redirects_log_skip’, 10, 2 ); function redirects_log_skip( $skip, $data ) { // Define a list of unwanted URLs $ignoreUrls = [ ‘/config.json’, ‘/home’, ‘/main’, ‘/server-status’, ‘/private’ ]; // Skip logging these URLs if they result in a 404 error…Continue reading
/** * Add the product column to the order table. * * @param array $columns The columns. * * @return array The modified columns. */ add_filter( ‘wcv_order_table_columns’, ‘wcv_add_product_column_table_columns’ ); /** * Add the product column to the order table. *…Continue reading
add_action(‘wp_head’, ‘custom_lazyload_script’); function custom_lazyload_script(){ ?>Continue reading
function homelink(){ $homelink = ‘Home‘; return $homelink;} function shoplink() { return ‘Shop‘;} function discoverlink() { $discoverlink = ‘Discover STUDEX®‘; return $discoverlink; } function bloglink() { $bloglink = ‘Trend Blog‘; return $bloglink; } function b2blink() { $b2blink = ‘STUDEX® B2B‘; return…Continue reading