• I want to develop a custom plugin that would allow me to add a Like button to the posts. I have done some reading but still don’t understand how will a plugin display the button. Will it tap into some action hook? Which one? Also I need a solution that works irrespective of the theme being used. Can anyone help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should do some research first.
    Try searching the plugin repository for plugins similar to what you want. You can use one of them (recommended since their code is already written and tested), or you can read their code to see how things are done (good for learning).

    Moderator bcworkz

    (@bcworkz)

    You could use “loop_start” action hook which fires before every post is output. It’s difficult to apply appropriate CSS to get such an element to integrate nicely since every theme is different.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Displaying a Like button to my posts’ is closed to new replies.