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.

No Hooks.

Return

Null. Nothing.

Usage

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

Notes

  • See: post_class()

Changelog

Since DEL 3.5.0 Introduced.

Code of sticky class: wp-includes/deprecated.php WP 5.2.2

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