2012-04-11, 09:50 AM
i have made a plugin which bans a post on some conditions. if a you-tube video is attached, it extracts its code and logs in a separate video table but with banned video flag.
if moderator or admin goes and approves that post form modcp/moderation queue , that post is published but video remains banned and does not display on my separate video page.
is there any hook, which can run on " approve_posts " method of class : \inc\class_moderation.php
i have written a custom query, that will update video table for videos under this post.
but i don't know , for moderator, i can bind with hook ????
if moderator or admin goes and approves that post form modcp/moderation queue , that post is published but video remains banned and does not display on my separate video page.
is there any hook, which can run on " approve_posts " method of class : \inc\class_moderation.php
i have written a custom query, that will update video table for videos under this post.
but i don't know , for moderator, i can bind with hook ????