Settings'; array_unshift($links, $settings_link); } return $links; } // Add admin menu -- if (is_admin()) { add_action('admin_menu', 'oembed_providers_menu'); add_action('admin_init', 'oembed_providers_register'); } // Whitelist options -- function oembed_providers_register() { register_setting('oembed_providers_optiongroup', 'oembed_format'); register_setting('oembed_providers_optiongroup', 'oembed_provider'); add_option('oembed_format', 'http://alm.plos.org/articles/*'); add_option('oembed_provider', 'http://alm.plos.org/oembed'); } // Admin menu page details -- function oembed_providers_menu() { add_options_page('ALM oEmbed settings', 'ALM oEmbed', 'manage_options', 'oembed_providers', 'oembed_providers_options'); } // Add actual menu page -- function oembed_providers_options() { ?>
This is the settings page for the ALM oEmbed plugin. This plugin whitelists an additional oEmbed service beyond those included by default.
Whitelist the following oEmbed service: