Remove hyperlink from name field
add_filter('preprocess_comment', 'remove_links_from_comment_author'); function remove_links_from_comment_author($commentdata) { // Regular expression to detect hyperlinks $pattern = '/
Bing Webmaster
Bing Webmaster snippet
Add user registration date
/* * Creating a column (it is also possible to remove some default ones) */ add_filter(…
MemebrPress: Send Membership-Specific Welcome Email Only When Transaction Is Completed
The code snippet will allow the membership-specific welcome email to be triggered only following the successful…
New to affiliate marketing? Learn step-by-step how to build your first website, create content, and start earning online.
New to affiliate marketing? Learn step-by-step how to build your first website, create content, and start…
Google AdSense Verification + Auto Ads
This snippet contains my AdSense verification meta tag and auto ads script.
Sort Events Category by Publish Date (Oldest First)
function sort_posts_by_category($query) { if ($query->is_main_query() && !is_admin()) { $oldest_first_categories = array(1483,1486,1485,1484,1482,1391); // Replace with the IDs…
Site Wide Header
add_filter('get_custom_logo', function($html) { // Only touch the header logo return preg_replace( '/]+)>/', '', // set to…
ACF_KEYSMST_MSTCASECPT – TAB - OUTCOMES & DISCHARGE (v3.0 Modular)
/** * ============================================ * MST CASE - TAB: OUTCOMES & DISCHARGE (v3.0 Modular) * ============================================ *…
Keep users logged in for 1 month on Staq
function stq_change_auth_cookie_expiration_period( $expiration_period ) { $expiration_period = MONTH_IN_SECONDS; // 1 month return $expiration_period; } add_filter( 'auth_cookie_expiration',…