'.esc_html__( 'Here you can make settings for the mobile.de API. Once the correct API credentials are set your vehicles are getting imported automatically.', 'ad-integration-for-mobile-de-api' ).'
';
echo '
'.esc_html__( 'Please include a note in your website\'s privacy policy, depending on applicable law, that you use data, content, and images from mobile.de.', 'ad-integration-for-mobile-de-api' ).'
'.esc_html__( 'With a custom permalink structure, the URL of a single vehicle can be customized. Please note: Any changes will result in all URLs being recreated. This means that the vehicles may no longer be accessible via the previous links. Therefore, please be careful.', 'ad-integration-for-mobile-de-api' ).'';
},
'mobile_api'
);
add_option( 'mobile_api_custom_slug', 'vehicle/%mobile_api_vehicle_category%' );
register_setting( 'mobile_api', 'mobile_api_custom_slug', array( 'sanitize_callback' => 'mobile_api_sanitize_slug_field' ) );
add_settings_field(
'mobile_api_custom_slug',
__( 'Custom slug for single pages', 'ad-integration-for-mobile-de-api' ),
function() {
$custom_slug = get_option( 'mobile_api_custom_slug' );
?>
'.__( 'Settings', 'ad-integration-for-mobile-de-api' ).'' ); // Add link as first element in array
return $links;
}
add_filter( 'plugin_action_links_ad-integration-for-mobile-de-api/mobile-api.php', 'mobile_api_add_settings_link_plugin_page' );
function mobile_api_options_page() {
?>
›
'.esc_html__( 'Provide vehicles as a data source for Google vehicle ads in Google Merchant Center. Only vehicle types allowed by Google are included: cars and motorhomes, no motorbikes or commercial vehicles.', 'ad-integration-for-mobile-de-api' ).'';
},
'mobile_api_google'
);
register_setting( 'mobile_api_options_group_google', 'mobile_api_google_store_code', 'sanitize_text_field' );
add_settings_field(
'mobile_api_google_store_code',
__( 'Store code', 'ad-integration-for-mobile-de-api' ),
function() {
?>
'boolean', 'sanitize_callback' => 'rest_sanitize_boolean', 'default' => false ) );
add_settings_field(
'mobile_api_google_include_heavy',
__( 'Vehicles above 3.5 t', 'ad-integration-for-mobile-de-api' ),
function() {
?>