1

I am new to Wordpress and want to make some changes in the content of a plugin page. I have found out that the same can be done using

add_filter

I have the filter value for the plugin content that I want to change. I am using the storefront theme. So I open the storefront_functions.php , but I am not sure where to add the code snippet.

Seeking guidance/suggestions regarding the same.

Thanks

2 Answers 2

1

Every New function you should add to the bottom. Same with JavaScript, JQuery, CSS and any other language. Same as you would write in a book. 😊

We only go back up to edit/amend something.

0

Usually, it would be the best to add at the bottom of the script, to make sure everything you use inside the snipped is declared already and ready to use. It all depends on the actual code you're using and your goal.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.