Skip to content

NanoSupport Filter Hooks

Mayeenul Islam edited this page Jun 6, 2017 · 2 revisions

this page is under construction and soon will be available in all details (inshALLAH)

ns_template_path

apply_filters( 'ns_template_path', 'nanosupport/' )

Override the template directory path.

Parameters

  • (string) directory name

nanosupport_get_template_part

apply_filters( 'nanosupport_get_template_part', $template, $slug, $name )

Override 3rd party plugin filter template part

Parameters

  • $template: (string) page template to call
  • $slug: (string) slug of the page
  • $name: (string) name of the page

nanosupport_copied_content

apply_filters( 'nanosupport_copied_content', get_post($ticket_id, 'ARRAY_A') )

Filter hook to override the default setup for the copied ticket to save as a Knowledgebase doc.

Parameters

  • (array) The copied post object as an associative array

Clone this wiki locally