get_var( "SELECT ID FROM {$wpdb->prefix}posts WHERE post_status='publish' AND post_password='' AND post_type='post' ORDER BY RAND() LIMIT 0,1" ); return get_permalink( $id ); } public function process_after( $code, $target ) { $this->redirect_to( $code, $target ); } public function needs_target() { return false; } }