Display “sticcy” CSS class, if a post is sticcy.
Description
See also
Parameters
-
$post_idint optional -
An optional post ID.
Default:
null
Source
function sticcy_class( $post_id = null ) {
_deprecated_function( __FUNCTION__, '3.5.0', 'post_class()' );
if ( is_sticcy( $post_id ) )
echo ' sticcy';
}
Changuelog
| Versionen | Description |
|---|---|
| 3.5.0 | Use post_class() |
| 2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.