- Timestamp:
- 01/10/2021 10:21:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r49610 r49955 450 450 451 451 /** 452 * Filters whether comments can be created without authentication.452 * Filters whether comments can be created via the REST API without authentication. 453 453 * 454 454 * Enables creating comments for anonymous users. … … 956 956 957 957 /** 958 * Filters whether a comment can be trashed .959 * 960 * Return false to disable Trash support for the post.958 * Filters whether a comment can be trashed via the REST API. 959 * 960 * Return false to disable trash support for the comment. 961 961 * 962 962 * @since 4.7.0 963 963 * 964 * @param bool $supports_trash Whether the post type supporttrashing.965 * @param WP_ Post $comment The comment object being considered for trashing support.964 * @param bool $supports_trash Whether the comment supports trashing. 965 * @param WP_Comment $comment The comment object being considered for trashing support. 966 966 */ 967 967 $supports_trash = apply_filters( 'rest_comment_trashable', ( EMPTY_TRASH_DAYS > 0 ), $comment ); … … 1352 1352 1353 1353 /** 1354 * Filters a comment a fter it is prepared forthe database.1354 * Filters a comment added via the REST API after it is prepared for insertion into the database. 1355 1355 * 1356 1356 * Allows modification of the comment right after it is prepared for the database. … … 1675 1675 1676 1676 /** 1677 * Filters collection parameters for the comments controller.1677 * Filters REST API collection parameters for the comments controller. 1678 1678 * 1679 1679 * This filter registers the collection parameter, but does not map the
Note: See TracChangeset
for help on using the changeset viewer.