Skip to content

Commit

Permalink
add hook for when then control class is instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
matzko committed Mar 1, 2011
1 parent 40b516a commit 53d2cd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/core.php
Expand Up @@ -11,6 +11,8 @@ public function __construct()
$this->view = new WP_JSON_RPC_API_View;
add_action('init', array(&$this, 'event_init'));
add_action('init', array(&$this->view, 'enqueue_helper_js'));

do_action( 'wp_json_rpc_api_instantiated' );
}

public function event_init()
Expand Down

0 comments on commit 53d2cd2

Please sign in to comment.