Hi fellas I'm starting to develop a wordpress plugin, I need a hook for an action to run before or after every post item, on the home page. I'm new to it and don't know if this is possible, I couldn't find the right one in API.
I've figured it out myself. In case anyone needs it, the hook name is the_post
it runs a function before every post.
add_action('the_post','myFunc');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.