Permalink
Browse files

add event_init method

  • Loading branch information...
1 parent 13f5ef5 commit de3d9edcf8d1779f92782c0d1e960484f116e651 @matzko committed Mar 16, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 includes/wp-lite-autosuggest.php
@@ -4,6 +4,18 @@ class WP_Lite_Autosuggest_Control
{
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()
+ {
+
}
}

0 comments on commit de3d9ed

Please sign in to comment.