WordPress at a glance
function is not described

sticky_class() WP 2.7.0

Deprecated from version 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.

No Hooks.

Return

null. Null. Nothing.

Usage

sticky_class( $post_id );
$post_id(int)
An optional post ID.

Notes

  • See: post_class()

Changelog

Since 2.7.0 Introduced.
Deprecated Since 3.5.0 Use post_class()

Code of sticky_class() WP 5.7.1

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