Found the issue. I have used action
as a url arg, which WP uses for all its actions such as approve_comment
, trash_post
etc. Changed it to a custom word and my code worked like a charm!
Found the issue. I have used action
as a url arg, which WP uses for all its actions such as approve_comment
, trash_post
etc. Changed it to a custom word and my code worked like a charm!