gdbbx_is_topic_locked()

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Description

Check if the topic is locked.

PHP
Definition
function gdbbx_is_topic_locked( int topic_id = 0 );
Arguments
Name
Type
Description
topic_id
int
ID of the topic to check. For ID of 0, it will attempt to get current topic ID.
Returns
BOOLEAN. TRUE if the topic is locked, FALSE if the topic is not locked.

This function depends on the Lock Forums feature.

0
0
74
Rate this reference

You are not allowed to rate this post.

Leave a Comment