WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
169 | <?php esc_html_e( 'Always put spam in the Spam folder for review.', 'akismet' ); ?> |
170 | </span> |
171 | </label> |
172 | </div> |
173 | </fieldset> |
174 |
|
175 | <div class="akismet-settings__row-note"> |
176 | <strong><?php esc_html_e( 'Note:', 'akismet' ); ?></strong> |
177 | <?php |
178 | $delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) ); |
179 |
|
180 | $spam_folder_link = sprintf( |
181 | '<a href="%s">%s</a>', |
182 | esc_url( admin_url( 'edit-comments.php?comment_status=spam' ) ), |
183 | esc_html__( 'spam folder', 'akismet' ) |
184 | ); |
185 |
|
186 | // The _n() needs to be on one line so the i18n tooling can extract the translator comment. |
187 | /* translators: %1$s: spam folder link, %2$d: delete interval in days */ |