开发者

Should I use a wordpress hook to replace a file?

开发者 https://www.devze.com 2023-04-06 07:59 出处:网络
I\'m having a little trouble deciding how开发者_JS百科 I should be implementing hooks in wordpress.

I'm having a little trouble deciding how开发者_JS百科 I should be implementing hooks in wordpress.

I'm currently using a child theme and in the single.php file of the parent theme there is a function <?php con_get_sharebox(); ?> that gets the contents of a file sharebox.php.

Now the sharebox.php file is the file I'd like to edit but I don't know how to do this using hooks.

I tried simply adding a different sharebox.php to my child theme but because its not part of the standard theme files I don't think it gets loaded.

Any ideas on what I can do?

0

精彩评论

暂无评论...
验证码 换一张
取 消