• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP load_muplugin_textdomain函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中load_muplugin_textdomain函数的典型用法代码示例。如果您正苦于以下问题:PHP load_muplugin_textdomain函数的具体用法?PHP load_muplugin_textdomain怎么用?PHP load_muplugin_textdomain使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了load_muplugin_textdomain函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: load_our_textdomain

 /**
  * Load our plugin textdomain
  */
 public static function load_our_textdomain()
 {
     $loaded = load_plugin_textdomain('wp-libre-form', false, dirname(plugin_basename(__FILE__)) . '/lang/');
     if (!$loaded) {
         $loaded = load_muplugin_textdomain('wp-libre-form', dirname(plugin_basename(__FILE__)) . '/lang/');
     }
 }
开发者ID:anttiviljami,项目名称:wp-libre-form,代码行数:10,代码来源:wp-libre-form.php


示例2: __construct

 /**
  * PHP5 Constructor
  *
  **/
 function __construct()
 {
     // get number of field sets
     $this->fields = isset($_GET['fields']) ? $_GET['fields'] : '';
     // default to 15 field sets
     if ($this->fields == '') {
         $this->fields = 15;
     }
     // no more than 50 fields sets
     if ($this->fields > 50) {
         $this->fields = 50;
     }
     // activate or upgrade
     if (isset($_GET['page']) && $_GET['page'] == 'add-new-users') {
         $this->make_current();
     }
     // add admin menu page
     add_action('admin_menu', array(&$this, 'plug_pages'));
     // load text domain
     if (defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/add-new-users.php')) {
         load_muplugin_textdomain('add_new_users', 'add-new-users-files/languages');
     } else {
         load_plugin_textdomain('add_new_users', false, dirname(plugin_basename(__FILE__)) . '/add-new-users-files/languages');
     }
 }
开发者ID:Blueprint-Marketing,项目名称:interoccupy.net,代码行数:29,代码来源:add-new-users.php


示例3: load_textdomain

 function load_textdomain()
 {
     if (preg_match('/mu\\-plugin/', PLUGINDIR) > 0) {
         load_muplugin_textdomain('postindexer', false, dirname(dirname(plugin_basename(__FILE__))) . '/languages/');
     } else {
         load_plugin_textdomain('postindexer', false, dirname(dirname(plugin_basename(__FILE__))) . '/languages/');
     }
 }
开发者ID:ryan2407,项目名称:Vision,代码行数:8,代码来源:class.postindexeradmin.php


示例4: loadTextdomain

 public static function loadTextdomain()
 {
     // Load translations first from the languages directory
     $locale = apply_filters('plugin_locale', get_locale(), $domain);
     load_textdomain($domain, WP_LANG_DIR . '/my-plugin/' . self::$domain . '-' . $locale . '.mo');
     // And then from this plugin folder
     load_muplugin_textdomain('wpp', basename(dirname(__FILE__)) . '/languages');
 }
开发者ID:rask,项目名称:wp-palvelu-plugin,代码行数:8,代码来源:wp-palvelu-plugin.php


示例5: register

 static function register()
 {
     if (defined('EM_VERSION')) {
         return;
     }
     load_muplugin_textdomain('redelivre', 'agenda/languages');
     register_post_type('agenda', array('labels' => array('name' => _x('Evento', 'post type general name', 'redelivre'), 'singular_name' => _x('Evento', 'post type singular name', 'redelivre'), 'add_new' => _x('Adicionar novo', 'image', 'redelivre'), 'add_new_item' => __('Adicionar novo evento', 'redelivre'), 'edit_item' => __('Editar evento', 'redelivre'), 'new_item' => __('Novo evento', 'redelivre'), 'view_item' => __('Ver evento', 'redelivre'), 'search_items' => __('Buscar eventos', 'redelivre'), 'not_found' => __('Nenhum evento encontrado', 'redelivre'), 'not_found_in_trash' => __('Nenhum evento encontrado na lixeira', 'redelivre'), 'parent_item_colon' => ''), 'public' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => 10, 'has_archive' => true, 'supports' => array('title', 'editor', 'thumbnail')));
 }
开发者ID:cabelotaina,项目名称:redelivre,代码行数:8,代码来源:agenda.php


示例6: bootstrap

 public function bootstrap()
 {
     if ($this->is_mu_plugin) {
         load_muplugin_textdomain('wp-js-plugin');
     } else {
         load_plugin_textdomain('wp-js-plugin');
     }
     $core = WP_JS_Plugin_Core::instance();
     add_action('init', array($core, 'maybe_bootstrap_admin'));
     add_action('rest_api_init', array($core, 'bootstrap_api'), 10, 1);
 }
开发者ID:felixarntz,项目名称:wp-js-plugin,代码行数:11,代码来源:wp-js-plugin.php


示例7: plugin_textdomain

 /**
  * Loads the plugin text domain for translation
  */
 public function plugin_textdomain()
 {
     $domain = 'acfsync';
     $locale = apply_filters('plugin_locale', get_locale(), $domain);
     load_textdomain($domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo');
     if (false !== strpos(__FILE__, basename(WPMU_PLUGIN_DIR))) {
         load_muplugin_textdomain($domain, dirname(plugin_basename(__FILE__)) . '/lang/');
     } else {
         load_plugin_textdomain($domain, FALSE, dirname(plugin_basename(__FILE__)) . '/lang/');
     }
 }
开发者ID:freshflesh,项目名称:acf-sync,代码行数:14,代码来源:acf-sync.php


示例8: incsub_support_init

function incsub_support_init()
{
    global $wpdb, $ticket_status, $ticket_priority, $incsub_support_page, $incsub_support_page_long;
    if (preg_match('/mu\\-plugin/', __FILE__) > 0) {
        load_muplugin_textdomain(INCSUB_SUPPORT_LANG_DOMAIN, dirname(plugin_basename(__FILE__)) . '/languages');
    } else {
        load_plugin_textdomain(INCSUB_SUPPORT_LANG_DOMAIN, false, dirname(plugin_basename(__FILE__)) . '/languages');
    }
    if (is_admin()) {
        wp_register_style('incsub_support_admin_css', plugins_url('incsub-support/css/wp_admin.css'), array(), INCSUB_SUPPORT_VERSION);
        wp_register_script('incsub_support_admin_js', plugins_url('incsub-support/js/wp_admin.js'), array('jquery'), INCSUB_SUPPORT_VERSION, true);
    }
    $wpdb->tickets = incsub_support_tablename('tickets');
    $wpdb->tickets_messages = incsub_support_tablename('tickets_messages');
    $wpdb->tickets_cats = incsub_support_tablename('tickets_cats');
    $wpdb->faq = incsub_support_tablename('faq');
    $wpdb->faq_cats = incsub_support_tablename('faq_cats');
    $ticket_priority = array(0 => __("Low", INCSUB_SUPPORT_LANG_DOMAIN), 1 => __("Normal", INCSUB_SUPPORT_LANG_DOMAIN), 2 => __("Elevated", INCSUB_SUPPORT_LANG_DOMAIN), 3 => __("High", INCSUB_SUPPORT_LANG_DOMAIN), 4 => __("Critical", INCSUB_SUPPORT_LANG_DOMAIN));
    $ticket_status = array(0 => __("New", INCSUB_SUPPORT_LANG_DOMAIN), 1 => __("In progress", INCSUB_SUPPORT_LANG_DOMAIN), 2 => __("Waiting on User to reply", INCSUB_SUPPORT_LANG_DOMAIN), 3 => __("Waiting on Admin to reply", INCSUB_SUPPORT_LANG_DOMAIN), 4 => __("Stalled", INCSUB_SUPPORT_LANG_DOMAIN), 5 => __("Closed", INCSUB_SUPPORT_LANG_DOMAIN));
    $incsub_support_imap = get_site_option('incsub_support_imap', array('host' => 'imap.gmail.com', 'port' => '993', 'ssl' => '/ssl', 'mailbox' => 'INBOX', 'username' => '', 'password' => ''));
    if (isset($_POST['incsub_support_menu_name'])) {
        update_site_option('incsub_support_menu_name', $_POST['incsub_support_menu_name']);
    }
    if (isset($_POST['incsub_support_from_name'])) {
        update_site_option('incsub_support_from_name', $_POST['incsub_support_from_name']);
    }
    if (isset($_POST['incsub_support_from_mail'])) {
        update_site_option('incsub_support_from_mail', $_POST['incsub_support_from_mail']);
    }
    if (isset($_POST['incsub_support_fetch_imap'])) {
        update_site_option('incsub_support_fetch_imap', $_POST['incsub_support_fetch_imap']);
        if (get_site_option('incsub_support_imap_frequency', '') != $_POST['incsub_support_imap_frequency']) {
            if (wp_reschedule_event(0, $_POST['incsub_support_imap_frequency'], 'incsub_support_fetch_imap') === false) {
                wp_schedule_event(0, $_POST['incsub_support_imap_frequency'], 'incsub_support_fetch_imap');
            }
            update_site_option('incsub_support_imap_frequency', $_POST['incsub_support_imap_frequency']);
        }
        if (empty($_POST['incsub_support_imap']['password'])) {
            $_POST['incsub_support_imap']['password'] = $incsub_support_imap['password'];
        }
        update_site_option('incsub_support_imap', $_POST['incsub_support_imap']);
        if (isset($_POST['test']) && $_POST['incsub_support_fetch_imap'] == "enabled") {
            if (incsub_support_fetch_imap()) {
                wp_redirect("{$incsub_support_settings_page}?page=support-options&updated=true&tested=true");
            } else {
                wp_redirect("{$incsub_support_settings_page}?page=support-options&updated=true&tested=false");
            }
        } else {
            wp_redirect("{$incsub_support_settings_page}?page=support-options&updated=true");
        }
    }
}
开发者ID:hscale,项目名称:webento,代码行数:52,代码来源:incsub-support.php


示例9: loadTextDomain

 public function loadTextDomain($domain = null, $path = null)
 {
     /** @var PluginInterface $this */
     $domain = $domain !== null ? $domain : $this->getTextDomain();
     $path = $path !== null ? $path : $this->getDomainPath();
     $file = wp_normalize_path($this->getFile());
     $muPluginDir = wp_normalize_path(WPMU_PLUGIN_DIR);
     if (strpos($file, $muPluginDir) === 0) {
         $path = basename($this->getDirectory()) . $path;
         return load_muplugin_textdomain($domain, $path);
     }
     return load_plugin_textdomain($domain, false, $path);
 }
开发者ID:devaloka,项目名称:devaloka-plugin,代码行数:13,代码来源:TranslatablePluginTrait.php


示例10: __construct

 /**
  * PHP 5 constructor
  **/
 function __construct()
 {
     add_action('login_init', array($this, 'clean_redirect'));
     add_filter('wp_logout', array(&$this, 'redirect'));
     add_action('wpmu_options', array(&$this, 'network_option'));
     add_action('update_wpmu_options', array(&$this, 'update_network_option'));
     add_action('admin_init', array(&$this, 'add_settings_field'));
     // load text domain
     if (defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/logout-redirect.php')) {
         load_muplugin_textdomain('logout_redirect', 'logout-redirect-files/languages');
     } else {
         load_plugin_textdomain('logout_redirect', false, dirname(plugin_basename(__FILE__)) . '/logout-redirect-files/languages');
     }
 }
开发者ID:brycefrees,项目名称:dunia,代码行数:17,代码来源:logout-redirect.php


示例11: __construct

 /**
  * PHP 5 Constructor
  *
  * @since 1.0
  */
 function __construct()
 {
     global $wp_version;
     if (defined('WPMU_PLUGIN_DIR') && strpos(__FILE__, WPMU_PLUGIN_DIR) === false) {
         $this->thispluginpath = WP_PLUGIN_DIR . '/' . dirname(plugin_basename(__FILE__)) . '/';
         $this->thispluginurl = WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)) . '/';
         load_plugin_textdomain($this->localization_domain, false, dirname(plugin_basename(__FILE__)) . '/languages/');
     } else {
         $this->thispluginpath = WPMU_PLUGIN_DIR . '/' . dirname(plugin_basename(__FILE__)) . '/';
         $this->thispluginurl = WPMU_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)) . '/';
         load_muplugin_textdomain($this->localization_domain, '/blogtemplatesfiles/languages/');
     }
     $this->currenturl_with_querystring = is_ssl() ? 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
     // Initialize the options
     $this->get_options();
     // Add the super admin page
     if (version_compare($wp_version, '3.0.9', '>')) {
         add_action('network_admin_menu', array($this, 'network_admin_page'));
     } else {
         add_action('admin_menu', array($this, 'pre_3_1_network_admin_page'));
     }
     // Admin notices and data processing
     add_action('network_admin_notices', array($this, 'admin_options_page_posted'));
     add_action('admin_notices', array($this, 'admin_options_page_posted'));
     // Actions
     $action_order = defined('NBT_APPLY_TEMPLATE_ACTION_ORDER') && NBT_APPLY_TEMPLATE_ACTION_ORDER ? NBT_APPLY_TEMPLATE_ACTION_ORDER : 9999;
     add_action('wpmu_new_blog', array($this, 'set_blog_defaults'), apply_filters('blog_templates-actions-action_order', $action_order), 6);
     // Set to *very high* so this runs after every other action; also, accepts 6 params so we can get to meta
     add_action('admin_footer', array($this, 'add_template_dd'));
     add_action('wp_enqueue_scripts', create_function('', 'wp_enqueue_script("jquery");'));
     // Special features for Multi-Domains
     add_action('add_multi_domain_form_field', array($this, 'multi_domain_form_field'));
     // add field to domain addition form
     add_action('edit_multi_domain_form_field', array($this, 'multi_domain_form_field'));
     // add field to domain edition form
     add_filter('md_update_domain', array($this, 'multi_domain_update_domain'), 10, 2);
     // saves blog template value on domain update
     add_filter('manage_multi_domains_columns', array($this, 'manage_multi_domains_columns'));
     // add column to multi domain table
     add_action('manage_multi_domains_custom_column', array($this, 'manage_multi_domains_custom_column'), 10, 2);
     // populate blog template column in multi domain table
     add_action('blogs_directory_blogs_list', array($this, 'blogs_directory_blogs_list'));
     // Signup: WordPress
     add_action('signup_blogform', array($this, 'registration_template_selection'));
     add_filter('add_signup_meta', array($this, 'registration_template_selection_add_meta'));
     // Signup: BuddyPress
     add_action('bp_after_blog_details_fields', array($this, 'registration_template_selection'));
     add_filter('bp_signup_usermeta', array($this, 'registration_template_selection_add_meta'));
 }
开发者ID:hscale,项目名称:webento,代码行数:54,代码来源:blog_templates.php


示例12: l10ni18n

 /**
  * Load CMB text domain
  * @since  2.0.0
  */
 public function l10ni18n()
 {
     $loaded = load_plugin_textdomain('cmb2', false, '/languages/');
     if (!$loaded) {
         $loaded = load_muplugin_textdomain('cmb2', '/languages/');
     }
     if (!$loaded) {
         $loaded = load_theme_textdomain('cmb2', '/languages/');
     }
     if (!$loaded) {
         $locale = apply_filters('plugin_locale', get_locale(), 'cmb2');
         $mofile = dirname(__FILE__) . '/languages/cmb2-' . $locale . '.mo';
         load_textdomain('cmb2', $mofile);
     }
 }
开发者ID:novichkovv,项目名称:prlab,代码行数:19,代码来源:init.php


示例13: load_plugin_textdomain

 /**
  *  Load translation file
  */
 private function load_plugin_textdomain($lang_dir = 'languages')
 {
     // Check load
     static $loaded;
     if (isset($loaded)) {
         return;
     }
     $loaded = true;
     // Check if this plugin is placed in wp-content/mu-plugins directory or subdirectory
     if (('mu-plugins' == basename(dirname(__FILE__)) || 'mu-plugins' == basename(dirname(dirname(__FILE__)))) && function_exists('load_muplugin_textdomain')) {
         load_muplugin_textdomain($this->key, ('mu-plugins' == basename(dirname(__FILE__)) ? '' : basename(dirname(__FILE__)) . '/') . $lang_dir);
         // Usual wp-content/plugins directory location
     } else {
         load_plugin_textdomain($this->key, false, basename(dirname(__FILE__)) . '/' . $lang_dir);
     }
 }
开发者ID:adamplabarge,项目名称:bermstyle,代码行数:19,代码来源:replace-content-image-size.php


示例14: __construct

 function __construct()
 {
     global $wp_version;
     include_once 'external/wpmudev-dash-notification.php';
     if (!function_exists('is_plugin_active_for_network')) {
         require_once ABSPATH . '/wp-admin/includes/plugin.php';
     }
     //Check for backwards compatibility
     $uploaddir = $this->upload_dir();
     $login_image_old = $this->get_option('ub_login_image_url', false);
     $login_image = $this->get_option('ub_login_image', false);
     // Check for backwards compatibility
     if (!isset($login_image_old) || $login_image_old == '') {
         //there is no any old record
         if (!$login_image) {
             //add default image if not exists
             $response = wp_remote_head(admin_url() . 'images/wordpress-logo.svg');
             if (!is_wp_error($response) && !empty($response['response']['code']) && $response['response']['code'] == '200') {
                 //support for 3.8+
                 $this->update_option('ub_login_image', admin_url() . 'images/wordpress-logo.svg');
             } else {
                 $this->update_option('ub_login_image', admin_url() . 'images/wordpress-logo.png');
                 // for older version
             }
         }
     } else {
         //there IS an OLD RECORD
         $this->update_option('ub_login_image', $login_image_old);
         //we will assume that file is in place
         $this->update_option('ub_login_image_url', '');
     }
     add_action('admin_enqueue_scripts', array(&$this, 'admin_enqueues'));
     add_action('admin_menu', array(&$this, 'add_admin_page'));
     add_action('network_admin_menu', array(&$this, 'add_network_admin_page'));
     if (defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/login-image.php')) {
         load_muplugin_textdomain('login_image', 'languages');
     } else {
         load_plugin_textdomain('login_image', false, dirname(plugin_basename(__FILE__)) . '/languages');
     }
     add_action('admin_init', array(&$this, 'process'));
     // Login interface
     add_action('login_head', array(&$this, 'stylesheet'), 99);
     if (!is_multisite()) {
         add_filter('login_headerurl', array(&$this, 'home_url'));
     }
 }
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:46,代码来源:login-image.php


示例15: localization

 function localization()
 {
     // Load up the localization file if we're using WordPress in a different language
     // Place it in this plugin's "languages" folder and name it "tc-[value in wp-config].mo"
     if ($this->location == 'mu-plugins') {
         load_muplugin_textdomain('tc-mollie', 'languages/');
     } else {
         if ($this->location == 'subfolder-plugins') {
             //load_plugin_textdomain( 'tc-mollie', false, $this->plugin_dir . '/languages/' );
             load_plugin_textdomain('tc-mollie', false, dirname(plugin_basename(__FILE__)) . '/languages/');
         } else {
             if ($this->location == 'plugins') {
                 load_plugin_textdomain('tc-mollie', false, 'languages/');
             } else {
             }
         }
     }
     $temp_locales = explode('_', get_locale());
     $this->language = $temp_locales[0] ? $temp_locales[0] : 'en';
 }
开发者ID:walkthenight,项目名称:walkthenight-wordpress,代码行数:20,代码来源:mollie.php


示例16: boot

 public function boot(Devaloka $devaloka, ContainerInterface $container)
 {
     require_once ABSPATH . '/wp-admin/includes/plugin.php';
     $file = $container->get('devaloka.file');
     $pluginData = get_plugin_data($file, false, false);
     $directory = dirname($file);
     if ($pluginData['TextDomain'] !== '') {
         $textDomain = $pluginData['TextDomain'];
     } else {
         $textDomain = basename($directory);
     }
     if ($pluginData['DomainPath'] !== '') {
         $domainPath = $pluginData['DomainPath'];
     } else {
         $domainPath = '/languages';
     }
     load_muplugin_textdomain($textDomain, dirname(plugin_basename($file)) . $domainPath);
     $locale = get_locale();
     $localeFile = $directory . $domainPath . '/' . $locale . '.php';
     if (is_readable($localeFile)) {
         require_once $localeFile;
     }
 }
开发者ID:devaloka,项目名称:devaloka,代码行数:23,代码来源:DevalokaProvider.php


示例17: _wds_init

function _wds_init()
{
    /**
     * Load textdomain.
     */
    if (defined('WPMU_PLUGIN_DIR') && file_exists(WPMU_PLUGIN_DIR . '/wpmu-dev-seo.php')) {
        load_muplugin_textdomain('wds', dirname(plugin_basename(__FILE__)) . '/wds-files/languages');
    } else {
        load_plugin_textdomain('wds', false, dirname(plugin_basename(__FILE__)) . '/wds-files/languages');
    }
    require_once WDS_PLUGIN_DIR . 'wds-core/wds-core-wpabstraction.php';
    require_once WDS_PLUGIN_DIR . 'wds-core/wds-core.php';
    global $wds_options;
    $wds_options = get_wds_options();
    if (is_admin()) {
        require_once WDS_PLUGIN_DIR . 'wds-core/admin/wds-core-admin.php';
        require_once WDS_PLUGIN_DIR . 'wds-core/admin/wds-core-config.php';
        // Sanity check first!
        if (!get_option('blog_public')) {
            add_action('admin_notices', 'wds_blog_not_public_notice');
        }
        require_once WDS_PLUGIN_DIR . 'wds-autolinks/wds-autolinks-settings.php';
        require_once WDS_PLUGIN_DIR . 'wds-seomoz/wds-seomoz-settings.php';
        require_once WDS_PLUGIN_DIR . 'wds-sitemaps/wds-sitemaps.php';
        require_once WDS_PLUGIN_DIR . 'wds-sitemaps/wds-sitemaps-settings.php';
        require_once WDS_PLUGIN_DIR . 'wds-onpage/wds-onpage-settings.php';
        if (@$wds_options['sitemap-dashboard-widget']) {
            require_once WDS_PLUGIN_DIR . 'wds-sitemaps/wds-sitemaps-dashboard-widget.php';
        }
        if (isset($wds_options['seomoz']) && $wds_options['seomoz'] == 'on') {
            // Changed '=' to '=='
            require_once WDS_PLUGIN_DIR . 'wds-seomoz/wds-seomoz-results.php';
            require_once WDS_PLUGIN_DIR . 'wds-seomoz/wds-seomoz-dashboard-widget.php';
        }
        if (isset($wds_options['onpage']) && $wds_options['onpage'] == 'on') {
            // Changed '=' to '=='
            require_once WDS_PLUGIN_DIR . 'wds-core/admin/wds-core-metabox.php';
            require_once WDS_PLUGIN_DIR . 'wds-core/admin/wds-core-taxonomy.php';
        }
    } else {
        if (isset($wds_options['autolinks']) && $wds_options['autolinks'] == 'on') {
            // Changed '=' to '=='
            require_once WDS_PLUGIN_DIR . 'wds-autolinks/wds-autolinks.php';
        }
        if (isset($wds_options['sitemap']) && $wds_options['sitemap'] == 'on') {
            // Changed '=' to '=='. Also, changed plural to singular.
            require_once WDS_PLUGIN_DIR . 'wds-sitemaps/wds-sitemaps.php';
            require_once WDS_PLUGIN_DIR . 'wds-sitemaps/wds-sitemaps-settings.php';
            // This is to propagate defaults without admin visiting the dashboard.
        }
        if (isset($wds_options['onpage']) && $wds_options['onpage'] == 'on') {
            // Changed '=' to '=='
            require_once WDS_PLUGIN_DIR . 'wds-onpage/wds-onpage.php';
        }
        if (defined('WDS_EXPERIMENTAL_FEATURES_ON') && WDS_EXPERIMENTAL_FEATURES_ON) {
            require_once WDS_PLUGIN_DIR . 'wds-sitemaps/wds-video_sitemaps.php';
        }
    }
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:59,代码来源:wpmu-dev-seo.php


示例18: localization

 /**
  * Load localization
  */
 function localization()
 {
     load_muplugin_textdomain('term-image', dirname(plugin_basename(__FILE__)) . '/assets/lang/');
 }
开发者ID:trendwerk,项目名称:term-image,代码行数:7,代码来源:class-tp-term-image.php


示例19: localize

 /**
  * Localisation
  */
 public function localize()
 {
     load_muplugin_textdomain('csv-exporter', dirname(dirname(dirname(plugin_basename(__FILE__)))) . '/assets/languages/');
 }
开发者ID:trendwerk,项目名称:csv-exporter,代码行数:7,代码来源:Plugin.php


示例20: localization

 function localization()
 {
     // Load up the localization file if we're using WordPress in a different language
     // Place it in this plugin's "languages" folder and name it "psts-[value in wp-config].mo"
     if ($this->location == 'plugins') {
         load_plugin_textdomain('psts', false, '/pro-sites/pro-sites-files/languages/');
     } else {
         if ($this->location == 'mu-plugins') {
             load_muplugin_textdomain('psts', '/pro-sites-files/languages/');
         }
     }
     //setup language code for jquery datepicker translation
     $temp_locales = explode('_', get_locale());
     $this->language = $temp_locales[0] ? $temp_locales[0] : 'en';
 }
开发者ID:hscale,项目名称:webento,代码行数:15,代码来源:pro-sites.php



注:本文中的load_muplugin_textdomain函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP load_option函数代码示例发布时间:2022-05-15
下一篇:
PHP load_module_lang函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap