• Add-ons
  • Blog
  • Resources
    • Documentation
    • FAQs
    • Code snippets
    • Use cases
    • Support
  • Account
    • My account
    • Checkout
    • Cart
  • English
  • French
  • Add-ons
  • Blog
  • Resources
    • Documentation
    • FAQs
    • Code snippets
    • Use cases
    • Support
  • Account
    • My account
    • Checkout
    • Cart
  • English
  • French
home/Knowledge Base/Code snippets/Custom admin notification’s recipients

Custom admin notification’s recipients

31 views 0 August 26, 2022 thomas

By default, admin notifications will be sent to all adminstrators. However, in case you have many adminstrators on your site, you may want to customize the list of recipients. This code snippet will allow you to do that.

/**
* Custom admin notifications recipients
* 
* @return int[] admin recipients IDs
*/
function wpca_customize_admin_notifications_recipients() {
    return [1, 8];
}
Tags:notifications

Was this helpful?

Yes  1 No
Related Articles
  • Disable CSS resets and allow integration of third party plugins
  • Automatically add a user to a group
  • Changing the default page shown by the Customer Area
  • Changing the page shown after logout
  • Sidebars: how to disable them
  • Detect if you are on a page in the customer area
Knowledge base
  • Code snippets
  • Use cases
  • Community links
Documentations
  • Getting started
  • Using code snippets
  • The template system
  • Full documentation
FAQ
  • About licences
  • Pre-sales questions
  • After-sales questions
  • Plugin usage
  • Technical questions
  • Payments
Support
  • Pre-sales Enquiries
  • Main plugin support
  • Premium add-ons support
  • Feature Requests
  • Terms and conditions for sales
  • Refund policy
  • Privacy Policy
  • Legal notices
  • Copyright 2021 wp-customerarea.com. All Rights Reserved.