WordPress at a glance
function is not described

sticky_class() WP 2.7.0

Deprecated in 3.5.0. It is no longer supported and can be removed in future releases. Use post_class() instead.

Display "sticky" CSS class, if a post is sticky.

  • See: post_class()

No Hooks.


Nothing (null).


sticky_class( $post_id );
An optional post ID.
Default: null

Code of sticky class: wp-includes/deprecated.php VER 5.1.1

function sticky_class( $post_id = null ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'post_class()' );
	if ( is_sticky( $post_id ) )
		echo ' sticky';