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
167                                                                  <?php esc_html_e( 'Always put spam in the Spam folder for review.', 'akismet' ); ?>
168                                                             </span>
169                                                        </label>
170                                                   </div>
171                                              </fieldset>
172
173                                              <div class="akismet-settings__row-note">
174                                                   <strong><?php esc_html_e( 'Note:', 'akismet' ); ?></strong>
175                                                   <?php
176                                                   $delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
177
178                                                   $spam_folder_link = sprintf(
179                                                        '<a href="%s">%s</a>',
180                                                        esc_url( admin_url( 'edit-comments.php?comment_status=spam' ) ),
181                                                        esc_html__( 'spam folder', 'akismet' )
182                                                   );
183
184                                                   // The _n() needs to be on one line so the i18n tooling can extract the translator comment.
185                                                   /* translators: %1$s: spam folder link, %2$d: delete interval in days */