0
votes

I need to know how to take the output of a custom built Wordpress plugin and output it onto a specific page.

I know that I need to use the add_action() / add_filter() functions to call the function which outputs the plugins output when a wordpress hook function runs.

Currently I am using the 'the_content' hook. This outputs my plugins output to all pages in my theme which call the the_content() function.

Which hook can I use to make the output only appear on a specific page. Also It would be useful to know how to create a page using my plugin.

1

1 Answers

0
votes

Checkout is_page()

if (is_page(123)) {
  // put your hooks here
}