public function rewrite_rules_array( array $rules ){
        if( !empty($this->rewrites) ){
            $rules = array_merge($this->rewrites, $rules);
        }
        return $rules;
    }
public function rewrite_rules_array( array $rules ){
        if( !empty($this->rewrites) ){
            $rules = array_merge($this->rewrites, $rules);
        }
        return $rules;
    }
public function rewrite_rules_array ( array $ rules ) { if ( ! empty ( $ this -> rewrites ) ) { $ rules = array_merge ( $ this -> rewrites , $ rules ) ; } return $ rules ; }
Register rewrite rules

@param array $rules
@return array
Register rewrite rules