wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_page_of_comment › Hooks de Filtros WordPress

Desde4.7.0
Obsoleton/a
apply_filters( 'get_page_of_comment', (int)
Parâmetros: (4)
  • (int) $page Comment page.
    Required: Yes
  • (array) $args { Arguments used to calculate pagination. These include arguments auto-detected by the function, based on query vars, system settings, etc. For pristine arguments passed to the function, see `$original_args`. @type string $type Type of comments to count. @type int $page Calculated current page. @type int $per_page Calculated number of comments per page. @type int $max_depth Maximum comment threading depth allowed. }
    Required: Yes
  • (array) $original_args { Array of arguments passed to the function. Some or all of these may not be set. @type string $type Type of comments to count. @type int $page Current comment page. @type int $per_page Number of comments per page. @type int $max_depth Maximum comment threading depth allowed. }
    Required: Yes
  • (int) $comment_id ID of the comment.
    Required: Yes
Definido em:
Codex:

Filters the calculated page on which a comment appears.





Fonte

return apply_filters( 'get_page_of_comment', (int) $page, $args, $original_args, $comment_id );