GC_Comment_Query::parse_query()
最后更新于:2021-11-26 22:41:14
GC_Comment_Query::parse_query( string|array$query=”)Parse arguments passed to the comment query with default query parameters.
参数
- $query
-
(string|array) (Optional) GC_Comment_Query arguments. See GC_Comment_Query::__construct()
Default value: ”
源文件
文件: gc-includes/class-gc-comment-query.php
public function parse_query( $query = '' ) {
if ( empty( $query ) ) {
$query = $this->query_vars;
}
$this->query_vars = gc_parse_args( $query, $this->query_var_defaults );
/**
* Fires after the comment query vars have been parsed.
*
* @since 4.2.0
*
* @param GC_Comment_Query $this The GC_Comment_Query instance (passed by reference).
*/
do_action_ref_array( 'parse_comment_query', array( &$this ) );
}