diff --git a/functions.php b/functions.php index 3c92e9f..5b70470 100644 --- a/functions.php +++ b/functions.php @@ -238,4 +238,87 @@ function fb_opengraph() { } } add_action('wp_head', 'fb_opengraph', 5); + +add_action( 'admin_init', 'retargeting_settings' ); + +//==================================================== +// Link Guessing init +//==================================================== + +function retargeting_settings(){ + + /* Register Settings */ + register_setting( + 'general', // Options group + 'retargeting_settings', // Option name/database + 'retargeting_settings_sanitize' // sanitize callback function + ); + + /* Create settings section */ + add_settings_section( + 'retargeting_settings_section_id', // Section ID + '', // Section title - leave it blank + null, // Section description callback function - we don't need it + 'general' // Settings page slug + ); + + /* Create settings field */ + add_settings_field( + 'retargeting_settings_field_id', // Field ID + 'Retargeting', // Field title + 'retargeting_settings_field_callback', // Field callback function + 'general', // Settings page slug + 'retargeting_settings_section_id' // Section ID + ); +} + +function retargeting_settings_sanitize( $input ){ + return isset( $input ) ? true : false; +} + +function retargeting_settings_field_callback(){ + ?> + + + + \ No newline at end of file