comments_open

comments_open

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('comments_open') is found 1 times:

  • /wp-includes/comment-template.php line 1329
    1325
    1326
    1327
    1328
    1329
    1330
    1331
    1332
    1333
    1334
    1335
         *
         * @param bool $comments_open Whether the current post is open for comments.
         * @param int  $post_id       The post ID.
         */
        return apply_filters( 'comments_open', $comments_open, $post_id );
    }
     
    /**
     * Determines whether the current post is open for pings.
     *
     * For more information on this and similar theme functions, check out

See this hook used in plugins:

Examples using comments_open