North Commerce
Back to North Commerce
  • 🚀Getting Started
    • Welcome to North Commerce
    • Installation
  • ⛰️Core Concepts
    • Orders
    • Products
      • Create a product
      • One Time Products
      • Subscription Products
      • Payment Plan Products
  • 💳Payment Gateways & Merchants
    • Stripe
    • PayPal
  • 📄Single Page Checkout Forms & Funnels
    • Single Page Checkout
  • 🎨Styling
    • Global CSS Variables
  • Builders
    • Beaver Builder
      • Building With Beaver Builder
    • Bricks
      • Query Loop
      • Attributes
        • Cart Item Attributes
    • Oxygen
  • Shortcodes
    • Product Collections
    • Product Collection Slider
    • Product Page
    • Cart Page
    • Checkout Page
    • Cart Drawer
    • Cart Icon
    • Customer Registration
    • Customer Account
  • Settings
    • General
  • For Developers
    • Flows
      • Add To Cart
      • Flow Events
      • Custom Functions In Flows
    • PHP "API"
      • Basic Entity Access Usage
    • Hooks & Actions
      • View Admin Hook Names
    • REST API
      • Getting Started
      • Adding Test Data
      • Filtering
  • Integrations
    • Create an integration
Powered by GitBook
On this page

Was this helpful?

  1. For Developers
  2. Hooks & Actions

View Admin Hook Names

PreviousHooks & ActionsNextREST API

Last updated 1 year ago

Was this helpful?

Anywhere that our template manager has been implemented you will be able to hook into before or after.

In order to quickly view that you can run this code in the admin area

 add_action('nc_before_template', function($path, $root, $hook_name) {
    echo "[nc_before_{$root}_{$hook_name}_template]<br>";
  },10, 3);
  
  add_action('nc_after_template', function($path, $root, $hook_name) {
    echo "[nc_after_{$root}_{$hook_name}_template]<br>";
  },10, 3);

The above code will render the names of the hooks for both the before and after templates. The name of the hook will be wrapped in brackets and will look something like the image. This is why its critical to be using our template manager for every component in North Commerce.