You get the current language of the install with the function get_locale(). WordPress save the language in theoptions table, option_name is WPLANG. But inside the Multisite install is in the table sitemeta.
But is not important. You should use the default functions to load a language file inside the theme template or the plugin.
- Theme:
load_theme_textdomain() - Plugin:
load_plugin_textdomain()
You find a small example inside this contact form template, public.
Related Posts:
- Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
- Advice on naming files for a plugin
- For performance is it better to build custom functionality into the theme or a plugin
- WordPress tips for speed and performance [closed]
- Save and retrieve custom plugin options value
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- Tracking last login and last visit
- Rename existing old uploaded images containing accented French characters (not during upload)
- Send batch of posts as HTML Email?
- Translate third party plugin and save translation files in custom theme
- Trying to add admin file upload form plugin
- wp_verify_nonce() why return false?
- What’s the best plugin for allowing javascript in a post or page? [closed]
- Plugin “Meta Box”: Implementing meta boxes in custom post type
- register_theme_directory somehow “fails” when folder is outside of WP-Folder
- Disable / Deregister all JS from all plugins
- Do extra plugin files get deleted during an upgrade?
- WordPress plugin for mail subscriptions [closed]
- Plugin allowing for artists, events and venues
- Shortcode is not working in homepage page template (custom front page)
- Prevent WordPress plugin from connecting to its server
- HTML in WooCommerce settings
- Redirecting to home page after login as custom role WordPress
- Only allowing some email addresses to create an account
- Where (or when) should I register a new taxonomy?
- Widget with same content across several websites
- WordPress plugin compatibility explaination when wordpress releases its new version (theoretical)
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- how to oauth1 Wp plug-in revoke/reset.?
- Why can’t I access my Intranet LDAPS with NADI?
- qTranslate remove default directory from link
- Custom User meta field display
- wordpress file upload with ajax when site is ajaxyfi
- Plugin to create forms using HTML [closed]
- Create a plugin from within WordPress
- Render content of multiple pages and their descendants
- In Woocommerce theme need to add custom external link [closed]
- Error checking when future updates are automatic
- Integer in Array returns null
- wc_get_template new template does not showing up
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- Possibility to login without password
- Using custom php file for ajax url inside plugin
- Sending HTML email containing custom fields to site users from WordPress
- Plugin – Admin menu page broken url
- Hide DIV if empty – Plugin Gallery
- Add user meta after a user has registered and logged In [closed]
- Override css rules of a plugin within my own theme
- Article content navigator in wordpress like mbaskool website
- Retrieve Plugin Settings and insert into XML string
- Completely remove ability to create users?
- Linked pages from plugin on front can’t see $wpdb
- Defining the value of a variable before a function?
- What archive plugin works with W3 total cache? [closed]
- Compare custom field values
- Unexpected character and syntax error on wp-includes/formatting.php [closed]
- Error datatable whit ajax
- My plugin runs on every single WordPress page, but I want it to run only on activation
- working code, not working – Plugin Dev
- category page multiple products add to cart any plugin available for woocommerce
- How to get FAQ of your article on Google Search
- Horizontlal scrolling content
- Create dynamic / data driven pages in wordpress
- Can’t install plugins after updating to WordPress 4.9
- register_activation_hook doesn’t fire at all
- Cron jobs in wordpress
- Plugin sending emails to external addresses, not internal
- Adding a custom page template to a plugin generated page
- History of page, interval of years
- Choose default template for a page with code
- Custom Page Templates for a complex application – code must sit in a plugin and not the Theme
- How to fix On “An unexpected error occurred” message when I click on Add new theme or plugin?
- How to display post by date written (1974) and not date published (today)?
- Issue of page width with twenty fourteen theme
- Very Slow loading. Plugins report provided by P3 included
- How To Rewrite WordPress Pages URL Only?
- Change wp_mail SMTP settings for each E-Mail
- WordPress Thumbnail add action if no thumbnail
- How to set the captcha at the bottom of comments textarea
- How do I get WooCommerce to recreate the home page?
- Plugin update, is a deactivation and activation done?
- Update a WordPress website FROM Twitter or Facebook
- How to remove message output for the WP-PostRatings Plugin?
- Pass strings to plugin function [closed]
- How to display a link in the footer section
- How to tweak a plugin without preventing it from updating
- How can I replace the built in WordPress editor?
- Place max_execution_time in plugin [closed]
- Is there a WP-Plugin to convert PNG to GIF? [closed]
- How can I make a quotation engine like this website in WooCommerce?
- Function not being called on form submit, only blank admin-post.php page
- how to get the url of a custom uploaded file
- WordPress Convert queries to slashes using function.php
- 404 Error on a WordPress Website, Error disappears for a while and again appears
- ShipStation WooCommerce Integration error
- Failed to update a post when I add a taxonomy to it
- Not Able to Edit Homepage After Updating Elementor
- How to fetch data from the two plugin’s data on the frontend?
- How to add entity in WordPress that have metadata such as name, age