Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comments_open

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1201
1202      /**
1203       * Filters whether the current post is open for comments.
1204       *
1205       * @since 2.5.0
1206       *
1207       * @param bool $open    Whether the current post is open for comments.
1208       * @param int  $post_id The post ID.
1209       */
1210      return apply_filters( 'comments_open', $open, $post_id );
1211 }
1212
1213 /**
1214  * Determines whether the current post is open for pings.
1215  * 
1216  * For more information on this and similar theme functions, check out
1217  * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ 
1218  * Conditional Tags} article in the Theme Developer Handbook.
1219  *