Пример #1
0
function bsf_reset_options($option_to_reset)
{
    require_once dirname(__FILE__) . '/../settings.php';
    if ($option_to_reset == 'review') {
        add_review_option();
    }
    if ($option_to_reset == 'event') {
        add_event_option();
    }
    if ($option_to_reset == 'person') {
        add_person_option();
    }
    if ($option_to_reset == 'product') {
        add_product_option();
    }
    if ($option_to_reset == 'recipe') {
        add_recipe_option();
    }
    if ($option_to_reset == 'software') {
        add_software_option();
    }
    if ($option_to_reset == 'video') {
        add_video_option();
    }
    if ($option_to_reset == 'article') {
        add_article_option();
    }
    if ($option_to_reset == 'service') {
        add_service_option();
    }
    if ($option_to_reset == 'color') {
        add_color_option();
    }
    header("location:?page=rich_snippet_dashboard");
}
Пример #2
0
 function register_bsf_settings()
 {
     require_once plugin_dir_path(__FILE__) . 'settings.php';
     add_review_option();
     add_event_option();
     add_person_option();
     add_product_option();
     add_recipe_option();
     add_software_option();
     add_video_option();
     add_article_option();
     add_service_option();
     add_color_option();
 }