Skip to content

Commit

Permalink
chore(docs): Add @postclass to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jul 29, 2023
1 parent 26d8451 commit 0e311d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/usage/wordpress.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,13 @@ This is just a directive version of [`wp_footer`](https://developer.wordpress.or
## @wpbodyopen

This is a directive version of [`wp_body_open`](https://developer.wordpress.org/reference/functions/wp_body_open/) except that it will work on WordPress versions below 5.2.

## @postclass

`@postclass` functions the same as `[post_class](https://developer.wordpress.org/reference/functions/post_class/)` accepting an optional class and post ID.

```php
@postclass
@postclass('bg-white')
@postclass('bg-white', $post->ID)
```

0 comments on commit 0e311d9

Please sign in to comment.