Audience.to Pixel on all pages.
Version: 1.0.0
Author: audienceto
Author URI: http://audience.to/
*/
if (!defined('WP_CONTENT_URL'))
define('WP_CONTENT_URL', get_option('siteurl').'/wp-content');
if (!defined('WP_CONTENT_DIR'))
define('WP_CONTENT_DIR', ABSPATH.'wp-content');
if (!defined('WP_PLUGIN_URL'))
define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
if (!defined('WP_PLUGIN_DIR'))
define('WP_PLUGIN_DIR', WP_CONTENT_DIR.'/plugins');
function activate_audience() {
add_option('audience_app_id', ' ');
}
function deactive_audience() {
delete_option('audience_app_id');
}
function admin_init_audience() {
register_setting('audience', 'audience_app_id');
}
function admin_menu_audience() {
add_options_page('Audience Pixel', 'Audience Pixel', 'manage_options', 'audience', 'options_page_audience');
}
function options_page_audience() {
include(WP_PLUGIN_DIR.'/audience-pixel/options.php');
}
function audience() {
$audience_app_id = get_option('audience_app_id');
?>