Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: akismet_delete_comment_interval

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
168                                                                  <?php esc_html_e( 'Always put spam in the Spam folder for review.', 'akismet' ); ?>
169                                                             </span>
170                                                        </label>
171                                                   </div>
172                                              </fieldset>
173                                              
174                                              <div class="akismet-settings__row-note">
175                                                   <strong><?php esc_html_e( 'Note:', 'akismet' ); ?></strong>
176                                                   <?php
177                                                   $delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
178
179                                                   printf(
180                                                        _n(
181                                                             'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
182                                                             'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
183                                                             $delete_interval,
184                                                             'akismet'
185                                                        ),
186                                                        admin_url( 'edit-comments.php?comment_status=spam' ),