| @@ -60,9 +60,11 @@ | ||
| 60 | 60 | add_action( 'after_setup_theme', array( $this, 'register' ) ); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // Execute action hook |
| 64 | - add_action( 'automatorwp_execute_action', array( $this, 'maybe_execute' ), 10, 5 ); | |
| 64 | + //add_action( 'automatorwp_execute_action', array( $this, 'maybe_execute' ), 10, 5 ); | |
| 65 | + // NOTE: Needs to run on "maybe_execute" to pass correctly the arguments | |
| 66 | + add_action( 'automatorwp_execute_action_' . $this->action, array( $this, 'maybe_execute' ), 10, 5 ); | |
| 65 | 67 | |
| 66 | 68 | } |
| 67 | 69 | |
| 68 | 70 | /** |