Since version 1.1.0 of Impressum Plus there is are plenty possibilities to change the output of particular content.

General Filters

impressum_admin_default_tab

Through the filter impressum_admin_default_tab the default active tab in the imprint settings in the backend can be set.

Parameters:
string $default_tab The default tab (default: imprint)

Expects a string.

Example

function my_impressum_admin_default_tab( $default_tab ) {
	return 'my-tab';
}

add_filter( 'impressum_admin_default_tab', 'my_impressum_admin_default_tab' );Code language: PHP (php)

impressum_admin_tab

Through the filter impressum_admin_tab you can change the tabs in the backend.

Parameters:
array $tabs The tabs in the backend
string $form_action The action of the form inside the tab
string $current_tab The current active tab

Expects an array.

Example

function my_impressum_admin_tab( $tabs, $form_action, $current_tab ) {
	$slug = 'my-tab';
	
	// get content
	ob_start();
	echo '<div class="nav-tab-content' . ( $current_tab === $slug ? ' nav-tab-content-active' : '' ) . '" id="nav-tab-content-' . esc_attr( $slug ) . '">';
	echo '<form action="' . esc_html( $form_action ) . '" method="post">';
	// output security fields for the registered setting "impressum"
	settings_fields( 'impressum_' . $slug );
	// output setting sections and their fields
	// (sections are registered for "impressum", each field is registered to a specific section)
	do_settings_sections( 'impressum_' . $slug );
	// output save settings button
	submit_button( __( 'Save Settings', 'impressum-plus' ) );
	echo '</form>';
	echo '</div>';
	
	$tabs[] = [
		'content' => ob_get_clean(),
		'slug' => $slug,
		'title' => __( 'My Tab', 'impressum-plus' ),
	];
	
	return $tabs;
}

add_filter( 'impressum_admin_tab', 'my_impressum_admin_tab', 10, 3 );Code language: PHP (php)

impressum_api_api_args

Through the filter impressum_api_api_args you can change the parameters of the particular fields in the API.

Parameters:
array $api_args The API parameters

Expects an array.

Example

function my_impressum_api_api_args( $api_args ) {
	// get $settings_fields from somewhere with each field
	// having a sub-index 'api' for API related information
	
	foreach ( $settings_fields as $key => $settings_field ) {
		if ( empty( $settings_field['api'] ) ) continue;
		
		$my_args[ $key ] = $settings_field['api'];
	}
	
	return $my_args;
}

add_filter( 'impressum_api_api_args', 'my_impressum_api_api_args' );Code language: PHP (php)

impressum_api_option_name

Through the filter impressum_api_option_name you can change the name of the options, that should be returned/changed via API.

Parameters:
string $option_name The option’s name
\WP_REST_Request $request The current request object (since 2.3.0)

Expects a string.

Example

function my_impressum_api_option_name( $option_name, $request ) {
	return 'my_option';
}

add_filter( 'impressum_api_option_name', 'my_impressum_api_option_name', 10, 2 );Code language: PHP (php)

impressum_api_option_sub_key

since 2.3.0

Through the filter impressum_api_option_sub_key you can change the name of the key of the option, that should be returned/changed via API.

Parameters:
string $sub_key The sub key name
\WP_REST_Request $request The current request object

Expects a string.

Example

function my_impressum_api_option_name( $sub_key, $request ) {
	return 'name';
}

add_filter( 'impressum_api_option_sub_key', 'my_impressum_api_option_name', 10, 2 );Code language: PHP (php)

impressum_api_tab_content

Through the filter impressum_api_tab_content you can change the content of the tab “API” in the backend.

Parameters:
string $content The “API”’s tab content

Expects a string.

Example

function my_impressum_api_tab_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_api_tab_content', 'my_impressum_api_tab_content' );Code language: PHP (php)

impressum_country_after_sort

Through the filter impressum_country_after_sort you can change the countries after they have been sort.

Parameters:
array $countries The top 50 countries alphabetically

Expects an array.

Example

function my_impressum_country_after_sort( $countries ) {
	$countries['grl'] = __( 'Greenland', 'my-textdomain' );
	
	return $countries;
}

add_filter( 'impressum_country_after_sort', 'my_impressum_country_after_sort' );Code language: PHP (php)

impressum_country_pre_sort

Through the filter impressum_country_pre_sort you can change the countries before they have been sort.

Parameters:
array $countries The top 50 countries

Expects an array.

Example

function my_impressum_country_pre_sort( $countries ) {
	$countries['grl'] = __( 'Greenland', 'my-textdomain' );
	
	return $countries;
}

add_filter( 'impressum_country_pre_sort', 'my_impressum_country_pre_sort' );Code language: PHP (php)

impressum_disabled_backend

Through the filter impressum_disabled_backend you can define whether the backend should be displayed or not (can be useful if controlled via API).

Parameters:
bool $disabled_backend true, if the backend should not be displayed, false otherwise (default: false)

Expects a boolean.

Example

add_filter( 'impressum_disabled_backend', '__return_true' );Code language: PHP (php)

impressum_disabled_notice

Through the filter impressum_disabled_notice you can define whether the notice in the backend should be displayed, that informs you about an incomplete imprint.

Parameters:
bool $disabled_notice true, if the notice should be disabled false otherwise (default: false)

Expects a boolean.

Example

add_filter( 'impressum_disabled_notice', '__return_true' );Code language: PHP (php)

impressum_imprint_tab_content

Through the filter impressum_imprint_tab_content you can change the content of the tab “imprint” in the backend.

Parameters:
string $content The “imprint”’s tab content

Expects a string.

Example

function my_impressum_imprint_tab_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_imprint_tab_content', 'my_impressum_imprint_tab_content' );Code language: PHP (php)

Through the filter impressum_legal_entity_after_sort you can change the legal entities after they have been sort.

Parameters:
array $legal_entities The legal entities alphabetically

Expects an array.

Example

function my_impressum_legal_entity_after_sort( $legal_entities ) {
	$legal_entities['other'] = __( 'Other', 'my-textdomain' );
	
	return $legal_entities;
}

add_filter( 'impressum_legal_entity_after_sort', 'my_impressum_legal_entity_after_sort' );Code language: PHP (php)

Through the filter impressum_legal_entity_pre_sort you can change the legal entities before they have been sort.

Parameters:
array $legal_entities The legal entities

Expects an array.

Example

function my_impressum_legal_entity_pre_sort( $legal_entities ) {
	$legal_entities['other'] = __( 'Other', 'my-textdomain' );
	
	return $legal_entities;
}

add_filter( 'impressum_legal_entity_pre_sort', 'my_impressum_legal_entity_pre_sort' );Code language: PHP (php)

impressum_privacy_settings_fields

Through the filter impressum_privacy_settings_fields you can change the settings fields of tab “Privacy” in the backend.

Parameters:
array $settings_fields The current privacy settings fields

Expects an array.

Example

function my_impressum_privacy_settings_fields( $settings_fields ) {
	// add a custom settings field
	$settings_fields['my_field'] = [
		'title' => __( 'My Field', 'my-textdomain' ),
		'callback' => 'text_callback', // function name or function
		'page' => 'impressum_privacy',
		'section' => 'impressum_section_privacy_general',
		'args' => [
			'label_for' => 'my_field',
			'class' => 'impressum_row',
			'description' => __( 'Optional description for my field', 'my-textdomain' ),
		],
		'api' => [
			'description' => esc_html__( 'The checkbox whether my field is being used.', 'my-textdomain' ),
			'type' => 'text',
		],
	];
	
	return $settings_fields;
}

add_filter( 'impressum_privacy_settings_fields', 'my_impressum_privacy_settings_fields' );Code language: PHP (php)

impressum_privacy_tab_content

Through the filter impressum_privacy_tab_content you can change the content of the tab “Privacy” in the backend.

Parameters:
string $content string $content The “Privacy”’s tab content

Expects a string.

Example

function my_impressum_privacy_tab_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_tab_content', 'my_impressum_privacy_tab_content' );Code language: PHP (php)

impressum_settings_fields

Through the filter impressum_settings_fields you can change the settings fields in the backend.

Parameters:
array $settings_fields The current settings fields

Expects an array.

Example

function my_impressum_settings_fields( $settings_fields ) {
	// add a custom settings field
	$settings_fields['my_field'] = [
		'title' => __( 'My Field', 'my-textdomain' ),
		'callback' => 'impressum_input_text_callback', // function name or function
		'page' => 'impressum_imprint',
		'section' => 'impressum_section_imprint',
		'args' => [
			'label_for' => 'my_field',
			'class' => 'impressum_row',
			'description' => __( 'Optional description for my field', 'my-textdomain' ),
			'required' => true,	
		],
		'api' => [
			'description' => esc_html__( 'The checkbox whether my field is being used.', 'my-textdomain' ),
			'type' => 'text',
		],
	];
	
	return $settings_fields;
}

add_filter( 'impressum_settings_fields', 'my_impressum_settings_fields' );Code language: PHP (php)

Filter Privacy Policy

The following filters are ordered by their appearance.

impressum_privacy_general_content

Through the filter impressum_privacy_general_content the content of the area “General” in the privacy policy can be changed.

Parameters:
string $policy_general The general content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_general_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_general_content', 'my_impressum_privacy_general_content' );Code language: PHP (php)

impressum_privacy_required_content

Through the filter impressum_privacy_required_content the content of the area “Required Content” in the privacy policy can be changed.

Parameters:
string $policy_required The required content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_required_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_required_content', 'my_impressum_privacy_required_content' );Code language: PHP (php)

impressum_privacy_ssl_content

Through the filter impressum_privacy_ssl_content the content of the area “SSL” in the privacy policy can be changed.

Parameters:
string $policy_ssl The SSL content of the privacy policy

Expects a string.

Example

function my_impressum_ssl_general_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_ssl_content', 'my_impressum_privacy_ssl_content' );Code language: PHP (php)

impressum_privacy_responsible_content

Through the filter impressum_privacy_responsible_content the content of the area “Responsible Person” in the privacy policy can be changed.

Parameters:
string $policy_responsible The responsible person content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_responsible_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_responsible_content', 'my_impressum_privacy_responsible_content' );Code language: PHP (php)

impressum_privacy_definition_content

Through the filter impressum_privacy_definition_content the content of the area “Definitions” in the privacy policy can be changed.

Parameters:
string $policy_definition The definitions content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_definition_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_definition_content', 'my_impressum_privacy_definition_content' );Code language: PHP (php)

Through the filter impressum_privacy_legal_basis_content the content of the area “Legal basis for data processing” in the privacy policy can be changed.

Parameters:
string $policy_general The legal basis for data processing content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_legal_basis_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_legal_basis_content', 'my_impressum_privacy_legal_basis_content' );Code language: PHP (php)

impressum_privacy_dpf_content

since 2.7.0

Through the filter impressum_privacy_dpf_content the content of the area “EU-US Data Privacy Framework (DPF)” in the privacy policy can be changed.

Parameters:
string $policy_general The legal basis for data processing content of the privacy policy
int $headline_number The current headline number in the whole privacy policy

Expects a string.

Example

function my_impressum_privacy_dpf_content( $content, $headline_number ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_dpf_content', 'my_impressum_privacy_dpf_content', 10, 2 );Code language: PHP (php)

impressum_privacy_logfile_content

Through the filter impressum_privacy_logfile_content the content of the area “Log files” in the privacy policy can be changed.

Parameters:
string $policy_logfile The log files content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_logfile_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_logfile_content', 'my_impressum_privacy_logfile_content' );Code language: PHP (php)

Through the filter impressum_privacy_cookie_content the content of the area “Cookies” in the privacy policy can be changed.

Parameters:
string $policy_cookie The cookies content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_cookie_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_cookie_content', 'my_impressum_privacy_cookie_content' );Code language: PHP (php)

Through the filter impressum_privacy_consent_manager_content the content of the area “Consent Manager” in the privacy policy can be changed.

Parameters:
string $policy_consent_manager The consent manager content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_consent_manager_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_consent_manager_content', 'impressum_privacy_consent_manager_content' );Code language: PHP (php)

impressum_privacy_tracking_content

Through the filter impressum_privacy_tracking_content the content of the area “Analysis” in the privacy policy can be changed.

Parameters:
string $policy_tracking The analysis content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_tracking_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_tracking_content', 'my_impressum_privacy_tracking_content' );Code language: PHP (php)

impressum_privacy_gtm_content

Through the filter impressum_privacy_gtm_content the content of the area “Google Tag Manager” in the privacy policy can be changed.

Parameters:
string $policy_general The Google Tag Manager content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_gtm_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_gtm_content', 'my_impressum_privacy_gtm_content' );Code language: PHP (php)

impressum_privacy_ads_content

Through the filter impressum_privacy_ads_content the content of the area “Ads” in the privacy policy can be changed.

Parameters:
string $policy_ads The ads content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_ads_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_ads_content', 'impressum_privacy_ads_content' );Code language: PHP (php)

impressum_privacy_google_maps_content

Through the filter impressum_privacy_google_maps_content the content of the area “Google Maps” in the privacy policy can be changed.

Parameters:
string $policy_maps The Google Maps content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_google_maps_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_google_maps_content', 'my_impressum_privacy_google_maps_content' );Code language: PHP (php)

impressum_privacy_google_fonts_content

Through the filter impressum_privacy_google_fonts_content the content of the area “Google Fonts” in the privacy policy can be changed.

Parameters:
string $policy_fonts The Google Fonts content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_google_fonts_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_google_fonts_content', 'my_impressum_privacy_google_fonts_content' );Code language: PHP (php)

impressum_privacy_youtube_content

Through the filter impressum_privacy_youtube_content the content of the area “YouTube” in the privacy policy can be changed.

Parameters:
string $policy_youtube The YouTube content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_youtube_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_youtube_content', 'my_impressum_privacy_youtube_content' );Code language: PHP (php)

impressum_privacy_vimeo_content

Through the filter impressum_privacy_vimeo_content the content of the area “Vimeo” in the privacy policy can be changed.

Parameters:
string $policy_vimeo The Vimeo content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_vimeo_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_vimeo_content', 'my_impressum_privacy_vimeo_content' );Code language: PHP (php)

impressum_privacy_facebook_pixel_content

Through the filter impressum_privacy_facebook_pixel_content the content of the area “Facebook Pixel” in the privacy policy can be changed.

Parameters:
string $policy_facebook_pixel The Facebook Pixel content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_facebook_pixel_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_facebook_pixel_content', 'my_impressum_privacy_facebook_pixel_content' );Code language: PHP (php)

impressum_privacy_additional_tracking_content

Through the filter impressum_privacy_additional_tracking_content the content of the area “Additional Tracking” in the privacy policy can be changed.

Parameters:
string $policy_additional_tracking The additional tracking content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_additional_tracking_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_additional_tracking_content', 'my_impressum_privacy_additional_tracking_content' );Code language: PHP (php)

impressum_privacy_contact_content

Through the filter impressum_privacy_contact_content the content of the area “Contact” in the privacy policy can be changed.

Parameters:
string $policy_contact The contact content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_contact_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_contact_content', 'my_impressum_privacy_contact_content' );Code language: PHP (php)

impressum_privacy_comment_content

Through the filter impressum_privacy_comment_content the content of the area “Comments” in the privacy policy can be changed.

Parameters:
string $policy_comments The comments content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_comment_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_comment_content', 'my_impressum_privacy_comment_content' );Code language: PHP (php)

impressum_privacy_cleantalk_content

since 2.7.0

Through the filter impressum_privacy_cleantalk_content the content of the area “CleanTalk” in the privacy policy can be changed.

Parameters:
string $policy_cleantalk The CleanTalk content of the privacy policy
int $headline_number The current headline number in the whole privacy policy

Expects a string.

Example

function my_impressum_privacy_cleantalk_content( $content, $headline_number ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_cleantalk_content', 'my_impressum_privacy_cleantalk_content', 10, 2 );Code language: PHP (php)

impressum_privacy_social_sharing_content

Through the filter impressum_privacy_social_sharing_content the content of the area “Social Sharing” in the privacy policy can be changed.

Parameters:
string $policy_social_sharing The social sharing content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_social_sharing_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_social_sharing_content', 'my_impressum_privacy_social_sharing_content' );Code language: PHP (php)

impressum_privacy_register_content

Through the filter impressum_privacy_register_content the content of the area “Registration” in the privacy policy can be changed.

Parameters:
string $policy_register The registration content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_register_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_register_content', 'my_impressum_privacy_register_content' );Code language: PHP (php)

impressum_privacy_newsletter_content

Through the filter impressum_privacy_newsletter_content the content of the area “Newsletter” in the privacy policy can be changed.

Parameters:
string $policy_newsletter The newsletter content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_newsletter_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_newsletter_content', 'my_impressum_privacy_newsletter_content' );Code language: PHP (php)

impressum_privacy_embed_privacy_content

Through the filter impressum_privacy_embed_privacy_content the content of the area “Embeds” in the privacy policy can be changed.

Parameters:
string $policy_embeds The embeds content of the privacy policy
int $headline_number The current headline number in the whole privacy policy

Expects a string.

Example

function my_impressum_privacy_embed_privacy_content( $content, $headline_number ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_embed_privacy_content', 'my_impressum_privacy_embed_privacy_content', 10, 2 );Code language: PHP (php)

impressum_privacy_spotify_content

since 2.7.0

Through the filter impressum_privacy_spotify_content the content of the area “Spotify” in the privacy policy can be changed.

Parameters:
string $policy_spotify The Spotify content of the privacy policy
int $headline_number The current headline number in the whole privacy policy

Expects a string.

Example

function my_impressum_privacy_spotify_content( $content, $headline_number ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_spotify_content', 'my_impressum_privacy_spotify_content', 10, 2 );Code language: PHP (php)

impressum_privacy_storage_time_content

Through the filter impressum_privacy_storage_time_content the content of the area “Duration of storage, deletion and blocking of personal data” in the privacy policy can be changed.

Parameters:
string $policy_storage_time The duration of storage, deletion and blocking of personal data content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_storage_time_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_storage_time_content', 'my_impressum_privacy_storage_time_content' );Code language: PHP (php)

impressum_privacy_rights_content

Through the filter impressum_privacy_rights_content the content of the area “Your rights as an affected person” in the privacy policy can be changed.

Parameters:
string $policy_rights The your rights as an affected person content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_rights_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_rights_content', 'my_impressum_privacy_rights_content' );Code language: PHP (php)

impressum_privacy_paypal_content

Through the filter impressum_privacy_paypal_content the content of the area “PayPal” in the privacy policy can be changed.

Parameters:
string $policy_paypal The PayPal content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_paypal_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_paypal_content', 'my_impressum_privacy_paypal_content' );Code language: PHP (php)

impressum_privacy_stripe_content

Through the filter impressum_privacy_stripe_content the content of the area “Stripe” in the privacy policy can be changed.

Parameters:
string $policy_jobs The Stripe content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_stripe_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_stripe_content', 'my_impressum_privacy_stripe_content' );Code language: PHP (php)

impressum_privacy_dhl_content

Through the filter impressum_privacy_dhl_content the content of the area “DHL” in the privacy policy can be changed.

Parameters:
string $policy_dhl The DHL content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_dhl_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_dhl_content', 'my_impressum_privacy_dhl_content' );Code language: PHP (php)

impressum_privacy_jobs_content

Through the filter impressum_privacy_jobs_content the content of the area “Data processing for job applications” in the privacy policy can be changed.

Parameters:
string $policy_jobs The data processing for job applications content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_jobs_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_jobs_content', 'my_impressum_privacy_jobs_content' );Code language: PHP (php)

impressum_privacy_amazon_partner_content

Through the filter impressum_privacy_amazon_partner_content the content of the area “Amazon Affiliate Program” in the privacy policy can be changed.

Parameters:
string $policy_amazon_partner The Amazon Affiliate Program content of the privacy policy

Expects a string.

Example

function my_impressum_privacy_amazon_partner_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_amazon_partner_content', 'my_impressum_privacy_amazon_partner_content' );Code language: PHP (php)

impressum_privacy_policy_content

Through the filter impressum_privacy_policy_content the content of the complete privacy policy can be changed.

Parameters:
string $policy The privacy policy

Expects a string.

Example

function my_impressum_privacy_policy_content( $content ) {
	// do stuff with content
	
	// then
	return $content;
}

add_filter( 'impressum_privacy_policy_content', 'my_impressum_privacy_policy_content' );Code language: PHP (php)

Privacy Policy System Check Filters

Impressum Plus tries to detect certain content on the website within the System Check automatically and shows or hides according content in the privacy policy automatically.

After changing one or multiple of the filters below, you can force a re-check by saving the privacy settings in the backend.

impressum_privacy_contact_form_slugs

Through the filter impressum_privacy_contact_form_slugs you can change the content of the contact form plugins to be checked in the system check.

Parameters:
string $contact_form_slugs The contact form plugin slugs

Expects an array.

Example

function my_impressum_privacy_contact_form_slugs( $slugs ) {
	// add slug
	$slugs[] = 'my-plugin/my-plugin.php';
	
	// then
	return $slugs;
}

add_filter( 'impressum_privacy_contact_form_slugs', 'my_impressum_privacy_contact_form_slugs' );Code language: PHP (php)

impressum_privacy_google_ads_slugs

Through the filter impressum_privacy_google_ads_slugs you can change the content of the Google Ads plugins to be checked in the system check.

Parameters:
string $google_ads_slugs The Google Ads plugin slugs

Expects an array.

Example

function my_impressum_privacy_google_ads_slugs( $slugs ) {
	// add slug
	$slugs[] = 'my-plugin/my-plugin.php';
	
	// then
	return $slugs;
}

add_filter( 'impressum_privacy_google_ads_slugs', 'my_impressum_privacy_google_ads_slugs' );Code language: PHP (php)

impressum_privacy_shop_slugs

Through the filter impressum_privacy_shop_slugs you can change the content of the shop plugins to be checked in the system check.

Parameters:
string $shop_slugs The shop plugin slugs

Expects an array.

Example

function my_impressum_privacy_shop_slugs( $slugs ) {
	// add slug
	$slugs[] = 'my-plugin/my-plugin.php';
	
	// then
	return $slugs;
}

add_filter( 'impressum_privacy_shop_slugs', 'my_impressum_privacy_shop_slugs' );Code language: PHP (php)

impressum_privacy_comment_subscription_slugs

Through the filter impressum_privacy_comment_subscription_slugs you can change the content of the comment subscription plugins to be checked in the system check.

Parameters:
string $comment_subscription_slugs The comment subscription plugin slugs

Expects an array.

Example

function my_impressum_privacy_comment_subscription_slugs( $slugs ) {
	// add slug
	$slugs[] = 'my-plugin/my-plugin.php';
	
	// then
	return $slugs;
}

add_filter( 'impressum_privacy_comment_subscription_slugs', 'my_impressum_privacy_comment_subscription_slugs' );Code language: PHP (php)

Table of Contents

  1. General Filters
    1. impressum_admin_default_tab
    2. impressum_admin_tab
    3. impressum_api_api_args
    4. impressum_api_option_name
    5. impressum_api_option_sub_key
    6. impressum_api_tab_content
    7. impressum_country_after_sort
    8. impressum_country_pre_sort
    9. impressum_disabled_backend
    10. impressum_disabled_notice
    11. impressum_imprint_tab_content
    12. impressum_legal_entity_after_sort
    13. impressum_legal_entity_pre_sort
    14. impressum_privacy_settings_fields
    15. impressum_privacy_tab_content
    16. impressum_settings_fields
  2. Privacy Policy Filters
    1. impressum_privacy_general_content
    2. impressum_privacy_required_content
    3. impressum_privacy_ssl_content
    4. impressum_privacy_responsible_content
    5. impressum_privacy_definition_content
    6. impressum_privacy_legal_basis_content
    7. impressum_privacy_dpf_content
    8. impressum_privacy_logfile_content
    9. impressum_privacy_cookie_content
    10. impressum_privacy_consent_manager_content
    11. impressum_privacy_tracking_content
    12. impressum_privacy_gtm_content
    13. impressum_privacy_ads_content
    14. impressum_privacy_google_maps_content
    15. impressum_privacy_google_fonts_content
    16. impressum_privacy_youtube_content
    17. impressum_privacy_vimeo_content
    18. impressum_privacy_facebook_pixel_content
    19. impressum_privacy_additional_tracking_content
    20. impressum_privacy_contact_content
    21. impressum_privacy_comment_content
    22. impressum_privacy_cleantalk_content
    23. impressum_privacy_social_sharing_content
    24. impressum_privacy_register_content
    25. impressum_privacy_newsletter_content
    26. impressum_privacy_embed_privacy_content
    27. impressum_privacy_spotify_content
    28. impressum_privacy_storage_time_content
    29. impressum_privacy_rights_content
    30. impressum_privacy_paypal_content
    31. impressum_privacy_stripe_content
    32. impressum_privacy_dhl_content
    33. impressum_privacy_jobs_content
    34. impressum_privacy_amazon_partner_content
    35. impressum_privacy_policy_content
  3. Privacy Policy System Check Filters
    1. impressum_privacy_contact_form_slugs
    2. impressum_privacy_google_ads_slugs
    3. impressum_privacy_shop_slugs
    4. impressum_privacy_comment_subscription_slugs