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:
- Can I leave off plugin textdomain for terms used in core?
- Changing title of a page dynamically from within a plugin
- How do you allow plugins to be updated using the GUI without breaking your subversion repository?
- Correct way to serialize the data of options table?
- Prevent multisite sites from using a plugin
- Plugins won’t auto-update on IIS
- Make plugin uninstalable on older versions of WordPress
- Qtranslate displays empty categories with get_categories()
- How can I translate the name of my Plugin for other languages?
- Remote plugin activation hook
- How to make a plugin auto-add item to nav menu
- How can I filter blog name?
- WordPress Custom Application form
- Cannot run the code after I activate the plugin
- Plugin could not be activated because it triggered a fatal error. (No Error??)
- Adding a jquery script to plugin contact form 7
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- Problem with wp_enqueue_scripts in plugin
- Best Practice: Remove data on deactivation or uninstall?
- WooCommerce & Caching [closed]
- Show Heirachy of categories in WP Download Monitor
- How to replace or display the special characters from JSON API plugin [closed]
- add_query_arg not working
- myCRED custom hook preferences doesn’t update creds and log
- Limit Number of Taxonomy Terms (Images) Displayed
- Widget for adding HTML markup to a page
- importing plugin w/ settings from one WP installation to another
- After plugin options changed hook
- How to make a slideshow shortcode based on the WordPress gallery shortcode? [closed]
- How to enable qTranslate languages tabs in custom plugin page
- Linking an image to open a youtube video in lightbox/fancybox in wordpress
- Making a Template for a CPT created by a plugin
- Woocommerce dependent plugin
- Get sent emails without email logs
- External CSS in WordPress Plugin [closed]
- PHP basics help in WP context – remove a class/function?
- User registration
- Plugin dependencies: show notice like theme plugins dependencies
- get 404 when accessing wp-admin/plugin-install.php
- What will happen if i deactivate my visual composer plug in? [closed]
- Custom Pages for Woocommerce Product-Category Pages
- Woocommerce Minimum Price for a Composite Product to add in cart
- What is most efficient way to migrate wordpress website?
- Bulk updates to post_content
- Migrating problem from Joomla to WP
- WordPress api call using wp-ajax returns error 400
- How To Extend A WordPress Plugin Without Losing Your Changes [duplicate]
- WPDB: Update table
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Why is my custom post type not being activated on plug-in activation?
- Add back to post link on blank comment post error page
- Check filter defined or not?
- Where to find the code used to render a page that has a shortcode and a template defined?
- Any idea how to get something like this to work? [closed]
- Skewed / slanted button within elementor [closed]
- How to find out whether a plugin is used in pages or posts?
- I want to use wordpress themes and plugin to develop website
- Custom Post Type template for homepage
- How to approach displaying products with no shopping cart plugin or post type?
- How can i export and import my plugin option WordPress
- Linking form to user meta fields
- Remove all messages, when untrash a post
- Help to Create a Simple Plugin to make a post
- how to find out which plugin disable custom field for post
- WordPress Theme footer remove after use Autoptimizer plugins
- How to add status information to a list of words in wordpress
- how to change a static testimonials into dynamic
- Looping the data from WordPress database using foreach
- Rename a folder via HTML POST request
- How can I capture error in admin files?
- add tags to wordpress post using REST API
- How to display latest viewed post by logged user?
- path of wp-content directory when we are on some plugin
- how to do Thematic like this website using wordpress?
- How to make a page both “private” and “password protected”
- Can’t Add Recaptcha
- How to duplicate a product page
- Custom content per post in widget
- Continous audio play in pages
- How to restrict “too soon” downloads with a general rule?
- Redux framework somehow added to my site, can’t locate in plugins
- what is the best way to create a premium plugin while also protecting your code
- Get url of selected gallery images?
- How to save information related to post in database?
- Filter html of WordPress editor in visual mode only
- Second foreach loop breaking (Posts2Posts)
- What is the RSS feed link for the newest WordPress plugins?
- How can I use multi Media Uploader in a plugin?
- Which filters or actions involve with index page for plugin?
- Updates for a private plugin?
- Gutenberg: Dynamic Block – Show saved data in the editor
- Is there a way to stop the theme and especially plugins listed?
- Update title field while listing wordpress page titles in Elementor selector
- How can I display custom snippet codes in the front end of my WordPress site
- I’m getting the following error: Fatal error: Uncaught Error: Call to undefined function oil_paint_regeneration() [closed]
- Selectively override Easy Digital Downloads protection via filter
- How to export post tags from wordpress
- Plugin_Upgrader not working if function is called from remote server
- Show WooCommerce products based on query parameters on redirect
- how to code activate/deactive button of custom plugin within backend?