/** * Plugin Name: Wholesale Payments — send $0-today plan orders to Processing * Description: Temporary workaround. Moves a Wholesale Payments order from On Hold * to Processing when the hold was caused only by “no payment is due *…Continue reading
add_filter(‘wp_mail’, ‘add_cc_to_wp_mail’, 10, 1); function add_cc_to_wp_mail($args) { // Specify the CC email address $cc_email = ‘[email protected]’; // Check if headers are an array or string if (is_array($args[‘headers’])) { $args[‘headers’][] = ‘Cc: ‘ . $cc_email; } else { $args[‘headers’] .= ‘Cc:…Continue reading
// Council Minutes Search – shortcode: [minutes_search] function foliot_minutes_search_shortcode( $atts ) { // Defense-in-depth: even though the containing Page is set to // “Private” (Editor/Admin only) and WPCode’s own Conditional Logic // will also gate this snippet, we check again…Continue reading
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
function hide_admin_menus() { remove_menu_page( ‘edit.php’ ); // Posts remove_menu_page( ‘upload.php’ ); // Media remove_menu_page( ‘edit-comments.php’ ); // Comments remove_menu_page( ‘themes.php’ ); // Appearance remove_menu_page( ‘plugins.php’ ); // Plugins remove_menu_page( ‘users.php’ ); // Users remove_menu_page( ‘tools.php’ ); // Tools // remove_menu_page(…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