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 |
---|---|
2225 | * ###LINK### URL of the personal data export file for the user. |
2226 | * ###SITENAME### The name of the site. |
2227 | * ###SITEURL### The URL to the site. |
2228 | * |
2229 | * @since 4.9.6 |
2230 | * |
2231 | * @param string $email_text Text in the email. |
2232 | * @param int $request_id The request ID for this personal data export. |
2233 | */ |
2234 | $content = apply_filters( 'wp_privacy_personal_data_email_content', $email_text, $request_id ); |
2235 |
|
2236 | $email_address = $request->email; |
2237 | $export_file_url = get_post_meta( $request_id, '_export_file_url', true ); |
2238 | $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
2239 | $site_url = home_url(); |
2240 |
|
2241 | $content = str_replace( '###EXPIRATION###', $expiration_date, $content ); |
2242 | $content = str_replace( '###LINK###', esc_url_raw( $export_file_url ), $content ); |
2243 | $content = str_replace( '###EMAIL###', $email_address, $content ); |