Snippet locations

Location rules control where WordPress loads a snippet. Match the narrowest scope that still does the job, then refine with display conditions.

  • Run Everywhere — public frontend (not wp-admin by default)
  • Frontend Only — public site, not wp-admin
  • Site Header — output in wp_head
  • Site Body — before/after content hooks
  • Site Footer — output before closing body
  • Shortcode Only — runs only when shortcode is placed
  • Admin Only — wp-admin contexts when supported for the snippet type
  • Specific Page — narrow to selected pages via display condition chips
Execution panel with Auto insert and Shortcode options
Execution — Auto insert or Shortcode
Tip
  • Prefer Frontend Only or footer placement for analytics scripts.
  • Use Admin Only only when the snippet is intentionally for wp-admin.