[RFE] Add action for loop
-
Hello
In a first time, sorry for my poor english… and I’m not sure to post this topic on the correct forums (sorry by advance in case of error)
I would be interested in adding two actions in the wordpress loop,
in addition to loop_start and loop_end.My suggestion is to add “loop_before_each” and “loop_after_each“,
called respectively before and after each element of the loop.In order to do this, we only need to add this line at the end of the_post() function :
do_action('loop_before_each', &$post);and at the beginning of have_post() function :
do_action('loop_after_each');Of course, the same thing can be do for the comment loop…
Thanks for reading !
The topic ‘[RFE] Add action for loop’ is closed to new replies.