Actions and Filters

Actions:

  • admin_init
  • admin_head – add jquery-ui css to admin page for datepicker
  • admin_menu – add to admin menus
  • admin_notices – admin errors
  • admin_print_scripts – enqueue scripts for wp-admin page
  • profile_update
    • save_order_info – Haven Abandon Recovery plugin
    • profile_update – Haven WhatCounts Framework plugin: update account in WC
    • save_fields – Haven CMS & Haven Registration plugins: save custom user data for Mequoda accounts
    • email_update – Haven Recurly: if email changed update Recurly account information
  • user_register
    • log_source & add_ecid – Haven Registration and Tracking custom user data
    • add_new_user – Haven WhatCounts Framework plugin: Create user account in WhatCounts via API
    • save_fields – Haven CMS & Haven Registration plugins: save custom user data for Mequoda accounts
  • query_vars – add custom query var to list of query vars for WhatCounts
  • template_redirect
    • listener – Haven Prospect on boarder plugin “confirm on click” callback
    • process_url – for Mequoda Order Manager order submitted
  • parse_query
    • playwal_form_submit – intercept and process from the form submit from paywall
    • intercept_query – intercept and process SOAP API call from THINK subscriptions
  • parse_request
    • intercept_query – intercept and process Web Hook from Recurly
  • register_post
  • save_post
  • wp_head
  • wp_footer
  • wp_enqueue_scripts
  • init – used in various places to
  • show_user_profile – add to user profile in admin haven CMS
  • edit_user_profile – add to user profile in admin haven CMS
  • wp_login – load entitlements after login
  • add_action(‘add_meta_boxes’, ‘text_ad_metabox’);
  • wp_ajax_ – Ajax calls
    • Haven Order Manager WP-Admin tools:
      • wp_ajax_cancel_order_only – just mark order cancelled
      • wp_ajax_cancel_legacy – cancel legacy converted CabotWealth subscription
      • wp_ajax_edit_expire_date – edit the expire entitlement for subscription
      • wp_ajax_edit_gift_info – edit the gift subscription information prior to processing
      • wp_ajax_edit_expire_issue – edit the print expire issue number in GreenPrints subscription
      • wp_ajax_bml_suspend – mark Bill Me Later subscription as suspended
      • wp_ajax_bml_hold – mark Bill Me Later subscription as on hold
      • wp_ajax_bml_cancel – mark Bill Me Later subscription as cancelled
      • wp_ajax_bml_pay – apply payment for Bill Me Later subscription as check or process CC in Recurly
    • Haven Publications
      • wp_ajax_toc_find_articles – get list of articles for magazine/collection TOC list
    • Haven Recurly order manager
      • wp_ajax_cancel_at_renewal – cancel subscription at renewal in Haven and Recurly
      • wp_ajax_terminate_immediately – terminate subscription with or without refund in Haven and Recurly
      • wp_ajax_refund_invoice – refund invoice for an event purchase, non recurring subscription
      • wp_ajax_edit_renewal_date – edit the next bill date and entitlements for subscription in Haven and Recurly
    • Haven Offer manager:
      • add_action( ‘wp_ajax_delete_prem’, array( $this, ‘delete_prem_ajax’ ) ) – removed Download Premium
    • Haven Ajax Registration:
      • wp_ajax_process_ajax_ofie – register user from an OFIE advert form submit
      • wp_ajax_process_ajax_reg – register user on the order form data collection step
      • wp_ajax_check_user_email_callback – check for existing user_email data collection form, non logged in user. allow ordering without login
      • wp_ajax_order_without_login_callback – get account info for ordering without login
      • wp_ajax_process_ajax_gift – process the registration for a gift order
  • Woo Commerce – Haven-Woocommerce: custom actions to support Mequoda Haven platform
    • add_action( ‘woocommerce_created_customer’, ‘mq_send_new_user_email’, 10, 3 );
    • add_action( ‘woocommerce_checkout_process’, ‘mq_stop_wc_update_on_cust_insert’ );
    • add_action( ‘woocommerce_register_post’, ‘mq_before_woo_creates_user’ );
    • add_action( ‘woocommerce_checkout_order_processed’, ‘mq_on_order_success’, 10, 3 );
    • add_action( ‘woocommerce_new_order’, ‘mq_create_order_admin’, 10, 2 );
    • add_action( ‘woocommerce_order_status_processing’, ‘mq_on_order_complete’ );
    • add_action( ‘woocommerce_order_status_completed’, ‘mq_on_order_complete’ );
  • MEQUODA
  • Haven CMS
  • add_filter( ‘mqr-profile-priority’, array( $this, ‘reorder_profile_parts’ ) );
  • add_filter( ‘whatcounts-profile-priority’, array( $this, ‘reorder_profile_parts’ ) );
  • add_filter( ‘mq-cms-expire-meta-name’, array( $this, ‘access_control_meta_name’ ) );
  • add_filter( ‘mq-cms-auto-renew-meta-name’, array( $this, ‘access_control_meta_name’ ) );
  • add_filter( ‘mq-cms-access-start-meta-name’, array( $this, ‘access_control_start_meta_name’ ) );
  • add_filter( ‘mq-cms-print-expire-meta-name’, array( $this, ‘nutrition_action_access_control_print_meta_name’ ) );
  • add_filter( ‘mq-cms-cancel-expire-meta-value’, array( $this, ‘cancel_access_control_meta_value’ ) );
  • add_filter( ‘mq-cms-cancel-print-expire-meta-value’, array( $this, ‘nutrition_action_cancel_access_control_print_meta_value’ ) );
  • add_filter( ‘mq-cms-products-args’, array( $this, ‘limit_manual_order_products’ ), 10, 2 );
  • mequoda-confirmed – registration plugin
  • add_action( ‘haven_onboard_coo’, array($this, ‘onboardCOO’) );
  • Haven Offer Manager
    • add_action( ‘mequoda-offer-saved’, array( $this, ‘offerSaved’ ) );
    • add_action( ‘mequoda-offer-deleted’, array( $this, ‘deletePlan’ ) );
    • add_action( ‘mequoda-offer-copied’, array( $this, ‘offerCopied’ ) );
  • Haven Transaction Tracker
  • add_action( ‘orders_cols_mod’, array( $this, ‘transactions_order_columns’ ) );
  • add_action( ‘display_orders_mod’, array( $this, ‘transactions_order_data’ ) );
  • add_filter( ‘csv_cols_mod’, array( $this, ‘trans_csv_cols_mod’ ), 10, 2 );
  • add_filter( ‘csv_orders_mod’, array( $this, ‘trans_csv_orders_mod’ ) );
  • add_action( ‘mequoda-unsubscribed’, array( $this, ‘unsubscribed’ ) );
  • add_action( ‘mequoda-subscribed’, array( $this, ‘subscribed’ ) );
  • add_action( ‘mequoda-ordered’, array( $this, ‘ordered’ ) );
  • add_action( ‘mequoda-ordered-manual’, array( $this, ‘ordered’ ) );
  • add_action( ‘mequoda-transaction’, array( $this, ‘addTransaction’ ) );
  • Haven WC framework
  • add_action( ‘haven_entitlements_renewed’, array( $this, ‘entitlements_renewed’ ) );