Skip to content

Commit

Permalink
add event_init method
Browse files Browse the repository at this point in the history
  • Loading branch information
matzko committed Mar 16, 2011
1 parent 13f5ef5 commit de3d9ed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions includes/wp-lite-autosuggest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ class WP_Lite_Autosuggest_Control
{ {
public function __construct() public function __construct()
{ {
if ( ! function_exists( 'load_wp_json_rpc_api' ) ) {
include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'wp-json-rpc-api' . DIRECTORY_SEPARATOR . 'wp-json-rpc-api.php';
}

load_wp_json_rpc_api();

add_action( 'init', array($this, 'event_init' ) );
}

public function event_init()
{

} }
} }


Expand Down

0 comments on commit de3d9ed

Please sign in to comment.