Any WP function is not working in the top of the plugin file
-
I tried to use a few functions into the top of my plugin file but it always returns an empty string or even becomes to display the blank page anywhere on the site. For example:
print_r(is_category('9'));
returns nothing.I need to use some WP function to know the current category ID in plugin, so that I could enable it for specific category.
Anybody knows why the functions doesn’t work in plugin?
I apologies for my English.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Any WP function is not working in the top of the plugin file’ is closed to new replies.