Post Levels plugin v0.2
posted 2005-02-19
Version 0.2 of the Post Levels plugin has been released.
Changes:
Two new functions were added:
is_private: Returnstrueif the current post is private (this follows the same model as the other "is" functions)is_post_level($level): Returnstrueif the current post's level is equal to$level, which defaults to0
Download
Install
Using the New Functions
An example for using the is_private() function is shown below:
<?php if (function_exists('is_private') && is_private()) : ?> <span class="private">(private)</span> <?php endif;?>
It is good style to check if the function exists before calling, in case the plugin is disabled for some reason.