Answer the question
In order to leave comments, you need to log in
Is there a universal method for adding code to Wordpress files?
For example, you need to add the output of working out some additive, such as . Someone takes and edits the files, in the WP theme editor or brutally on the server. It is clear that by updating the theme, all the beauty flies. Share the snippet to properly pin this Wishlist.
The child theme is not applicable for religious reasons. wpfp_link()
Answer the question
In order to leave comments, you need to log in
Hello!
If you need to execute PHP code on the page, then you can create a shortcode via add_shortcode()
https://wp-kama.ru/function/add_shortcode
And insert the shortcode into the page.
Here is a plugin that does the same - https://ru.wordpress.org/plugins/insert-php-code-s...
Insert PHP there, and it generates a shortcode.
It is clear that by updating the theme, all the beauty flies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question