Program-Me-Rev Program-Me-Rev - 1 year ago 55
PHP Question

How to call an action from another plugin after another action from a different plugin gets called

I have two plugins: plugin_A and plugin_B. In

there is an action a_action.php. In
there is an action b_action.php.


elgg_register_action("a_action", __DIR__ . "/actions/plugin_A/a_action.php");


elgg_register_action("b_action", __DIR__ . "/actions/plugin_B/b_action.php");

I would like b_action to be called after anytime a_action gets called.

How can I go about this.

Thank you all in advance.

Answer Source

for that you simply call elgg function called action at the end of a_action.php

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download