wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



post_class › Filtr WordPress Hooks

Od2.7.0
Przestarzałyn/a
› apply_filters( 'post_class', $classes, $css_class, $post->ID )
Parametry: (3)
  • () classes An array of post class names.
    Wymagane: Tak
  • () css_class An array of additional class names added to the post.
    Wymagane: Tak
  • () post_id The post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the list of CSS class names for the current post.





Źródło

$classes = apply_filters( 'post_class', $classes, $css_class, $post->ID );