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 str_replace( get_bloginfo( 'url' ), '', get_permalink( $id ) ); } public function process_after( $code, $target ) { $this->redirect_to( $code, $target ); } }