add_shortcode( ‘term_count’, function( $atts ) { $atts = shortcode_atts( array( ‘taxonomy’ => ”, ‘hide_empty’ => ‘false’, ), $atts, ‘term_count’ ); $taxonomy = sanitize_key( $atts[‘taxonomy’] ); if ( ! $taxonomy || ! taxonomy_exists( $taxonomy ) ) { return ‘0’; } $terms…Continue reading
final class Huttons_News_Importer { private const CRON_HOOK = ‘huttons_news_hourly’; private const CATALOG_URL = ‘https://www.huttonsgroup.com/property-news’; private const MINIMUM_DATE = ‘2026-01-01’; private const POST_TYPE = ‘insight’; private const SOURCE_META = ‘source’; private const ARTICLE_ID_META = ‘_huttons_article_id’; private const LOCK_KEY = ‘huttons_news_import_lock’; public…Continue reading
/** * LexiPress: Soft Catalog Mode & Endpoint Shield * Disables purchasing globally and redirects e-commerce endpoints to the homepage. */ if ( ! defined( ‘ABSPATH’ ) ) { exit; } // 1. Globally disable purchasing. This automatically removes all…Continue reading
add_action( ‘edd_pre_process_purchase’, function () { // Block checkout submits the confirmation as `edd_user_pass2`, // but checkout validation reads `edd_user_pass_confirm`. if ( empty( $_POST[‘edd_user_pass_confirm’] ) && ! empty( $_POST[‘edd_user_pass2’] ) ) { $_POST[‘edd_user_pass_confirm’] = $_POST[‘edd_user_pass2’]; } } );Continue reading
add_shortcode(‘bdc_security_map’, function () { returnContinue reading
add_shortcode(‘bdc_security_map’, function () { returnContinue reading
if ( ! defined( ‘ABSPATH’ ) ) { exit; } add_filter( ‘automatewoo/actions’, ‘rd_aw_register_customer_add_to_blacklist_manager_whitelist_action’ ); function rd_aw_register_customer_add_to_blacklist_manager_whitelist_action( $actions ) { if ( ! class_exists( ‘\AutomateWoo\Action’ ) ) { return $actions; } if ( ! class_exists( ‘RD_AW_Action_Customer_Add_To_Blacklist_Manager_Whitelist’ ) ) { class RD_AW_Action_Customer_Add_To_Blacklist_Manager_Whitelist…Continue reading
if ( ! function_exists( ‘rd_aw_blacklist_manager_normalize_email’ ) ) { /** * Normalise an email using Blacklist Manager’s active normaliser where available. * * @param mixed $email Raw email address. * @return string */ function rd_aw_blacklist_manager_normalize_email( $email ) { $email = is_string(…Continue reading
// Record last login timestamp add_action( ‘wp_login’, function( $user_login, $user ) { update_user_meta( $user->ID, ‘last_login’, current_time( ‘mysql’ ) ); }, 10, 2 ); // Add User ID and Last Login columns add_filter( ‘manage_users_columns’, function( $columns ) { // Add User…Continue reading