Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

textdomain

Home/ textdomain

Facing an error line above and at the bottom of my site first page

Question
The other day i faced a problem with my website. It got infected and since i made a complete scan with "wordfence" it found an infected file and i deleted that. After a while, some error lines filled my website page. One of the codes is the following: Deprecated: load_plugin_textdomain was
0
errors, textdomain Shahram Adeli 2 years 0 Answers 50 views

Filter in Custom post type to find the parent post

Question
function fws_admin_posts_filter( $query ) { global $pagenow; if ( is_admin() && $pagenow == 'edit.php' && !empty($_GET['my_parent_pages'])) { $query->query_vars['post_parent'] = $_GET['my_parent_pages']; } } add_filter( 'parse_query', 'fws_admin_posts_filter' ); f
0
custom-post-types, custom-taxonomy, filters, textdomain, wpdb Moumita akter 3 years 0 Answers 77 views

WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin

Question
Function in a plugin is behaving differently than function in the functions.php inside a child theme. I have a custom simple plain plugin with nothing but the following code in it and it works perfectly. It translates wpamelia plugin correctly with all strings as expected.
0
child-theme, php, textdomain, translation Mike 3 years 0 Answers 78 views

wordpress __() gettext problem

Question
I am using WPML string translation to translate strings in my site. When I check the theme file the gettext functions are written without a second argument eg: __('some text to translate') But after updating the WPML plugins the string translations stopped working. I
0
multi-language, plugin-wpml, plugins, textdomain Unnikrishnan R 3 years 0 Answers 119 views

How to load translation in JavaScript?

Question
I am struggling to load translation in JavaScript for my simple plugin. Translation works for PHP, but not in JS. What seems to be the problem, how can I debug this? I have loaded text domain in my plugin method and this works ok. My text domain is instantsearch, loc
0
javascript, textdomain, translation Marko 3 years 0 Answers 96 views

How to reload wordpress textdomains at runtime

Question
I'm currently using this to reload my theme and plugin textdomain in order to send e-mails (admin move, in admin language) in the user language. add_filter("theme_locale", array($this, "theme_locale"), 9999, 2); add_filter("plugin_locale", array($this, "plugin_locale"), 9999, 2);
0
language, multi-language, textdomain Rodrigo Butzke 3 years 0 Answers 88 views

How can I translate the name of my Plugin for other languages?

Question
How can I translate the name of plugin for other languages? For example: When Wordpress is in pt-BR language, the plugin would be "Meu plugin". If the Wordpress is in en-XX language, the plugin name would be "My plugin". Thanks!
0
localization, plugin-development, plugins, textdomain Lucas Vendramini 3 years 0 Answers 80 views

Load textdomain from global languages directory

Question
I am creating translations for my plugin. To fetch .mo files from my-plugin/languages directory , I use the function //Load translation function load_plugin_textdomain() { load_plugin_textdomain( 'my-plugin', FALSE, basename( dirname( __FILE__ ) ) . '/la
0
plugin-development, textdomain, translation wordpress user 6 years 0 Answers 82 views

Two text domains in one plugin

Question
From start: A = main plugin(the library), B = child plugin I develop a plugin B that will depend on another plugin A in order to work properly. I do this because I'm one of the persons who don't like code duplic
0
localization, plugins, textdomain, translation Andrei Surdu 8 years 0 Answers 71 views
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • 404 error - Page not

    ...

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.