Plugin. Html code in Template
One way to do that is to define a function, which either echos or returns stuff, in your plugin file and then use that function in your theme files when needed. For example in your my-awesome-plugin.php function hello_world() { echo ‘Hello world!’; } And then in your theme file, let’s say single.php // safety check … Read more