Is Use of wp_head and wp_footer required for plugin?

wordpress
tips-and-tricks

#1

I am preparing my first plugin. But I do not need to use even wp_head and wp_footer functions across those plugin templates.

Will it get a hard reject then?


#2

Most likely no but submit and see how it goes


#3

it depends on what your plugin does, if it adds a template to the frontend yes. it it just adds filters and content then no.

wp_header and wp_footer are required in theme files (which also counts for files created for themes by plugins) since 3.0 and would (should) be an auto rejection as wp_head and wp_footer are realistically the only ways to add css / js and some vital elements to the site.


#4

I assumed that it doesn’t add templates by the way