plugins – How to solve conflict with scripts?

Question

I have a problem, I created the first pluggin and after adding it to the production site, it turned out that the scripts also work for other things that are on other subpages – where there is not even a plugin.

My guess is that it’s because I registered add_action (wp_head) or (wp_footer). How can I do to record the action where only the shortcode is used?

edit:

I tried:

if (is_front_page()){
add_action(wp_footer, name_function) }
but not show add_Action at all. 

edit: 2

I made some change it plugin and my plugin disappear. And I cannot instal it again. WordPress said “there is folder with your plugin name” but I cannot active it or do something.

0
kamil danilski 1 year 2022-02-14T01:26:01-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse