Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • So my solution is actually flawed. 😔 since the loader fire the actions afterwards, it only uses the last assignment of the $args. I can't make it work with loops where I change dynamically the value of the $args. Commented Mar 21, 2022 at 23:47
  • Ok so, in order to make the $args change dynamically inside the loop, I instantiate a new $plugin_admin inside the loop. I edited my anwer accordingy. It works but I have absolutely no clue if it's a clean way or not to do so. So I'd appreciate a confirmation. 🙂 Commented Mar 22, 2022 at 1:24