Private Access Private Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Summery Summery
Close comments on an old post. Hooked to comments_open and pings_open.
Syntax Syntax
Parameters Parameters
- $open
-
(Required) Comments open or closed
- $post_id
-
(Required) Post ID
Return Return
(bool) $open
Source Source
File: wp-includes/comment.php
* * @since 3.5.1 * * @link https://www.hixie.ch/specs/pingback/pingback#TOC3 * * @param IXR_Error $ixr_error * @return IXR_Error */ function xmlrpc_pingback_error( $ixr_error ) { if ( 48 === $ixr_error->code ) { return $ixr_error; } return new IXR_Error( 0, '' ); } // // Cache. // /** * Removes a comment from the object cache. * * @since 2.3.0 * * @param int|array $ids Comment ID or an array of comment IDs to remove from cache. */ function clean_comment_cache( $ids ) { foreach ( (array) $ids as $id ) { wp_cache_delete( $id, 'comment' ); /** * Fires immediately after a comment has been removed from the object cache. *
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |