Exemplo n.º 1
0
 function optionsrara_init()
 {
     //  If user can't edit theme options, exit
     if (!current_user_can('edit_theme_options')) {
         return;
     }
     // Loads the required Options rara classes.
     require plugin_dir_path(__FILE__) . 'includes/class-options-rara.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-rara-admin.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-interface.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-sanitization.php';
     // Instantiate the options page.
     $options_rara_admin = new Options_rara_Admin();
     $options_rara_admin->init();
     // Instantiate the media uploader class
     $options_rara_media_uploader = new Options_rara_Media_Uploader();
     $options_rara_media_uploader->init();
 }