Beispiel #1
0
 /**
  * A callback executed wheeever a post is posted
  * @param int $postId
  */
 public function postCallback($postId)
 {
     WPSearch_Log::add('debug', "Post published callback executed for post #{$postId}");
     if (self::$_editPostHookRan) {
         return;
     }
     WPSearch_Search::instance()->addToIndex($postId);
     self::$_addPostHookRan = TRUE;
 }