Reputation
367
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 2 17
Impact
~23k people reached

  • 0 posts edited
  • 1 helpful flag
  • 110 votes cast
Mar
25
comment Why can I not use a class constant as text domain?
From Codex: "load_plugin_textdomain calls should be made during init, otherwise users cannot hook into it." - codex.wordpress.org/Plugin_API/Action_Reference/init
Mar
20
comment Why can I not use a class constant as text domain?
that doesn't make sense at all. You say the others are incorrect and I can see what you mean, but I'm not able to understand what to do instead.
Mar
20
comment Why can I not use a class constant as text domain?
Should I use a hook at or just load it at construct() ?
Mar
19
comment Why can I not use a class constant as text domain?
I've read around and seeing lot of sites that says I should load translation files on init.Here's an example: geertdedeckere.be/article/… . Here's another one:ulrich.pogson.ch/load-theme-plugin-translations Are they they incorrect?
Mar
19
comment Why can I not use a class constant as text domain?
Thanks a lot! There were actually one more issue. The textdomain should be the slug of the plugin. It didn't work to place the name of the file (mastercurrency.php) as the documentation stated (developer.wordpress.org/plugins/internationalization/… ). I had to change the textdomain to mastercurrency-wp for the translation tool to work.
Mar
19
comment Why can I not use a class constant as text domain?
@toscho - sorry. Somehow I managed to misunderstand your answer. Please put that as an answer and I will accept.
Mar
19
comment Why can I not use a class constant as text domain?
I think I've understand the actual issue now! I don't understand how I could miss this: "Do not use variable names for the text domain portion of a gettext function. Do not do this as a shortcut: __( ‘Translate me.’ , $text_domain );".
Mar
19
comment Why can I not use a class constant as text domain?
@toscho - I've updated, but it still get the same statement from wordpress.org
Mar
19
comment Why can I not use a class constant as text domain?
But the translation does work? With the translation tool you mean wordpress.org's translation tool? The error messages .. yes thanks I did miss those.
Mar
2
comment Is there a way to deque the style with higher priority?
YES! Thanks a lot! This was exactly what I was looking for!
Mar
2
comment Is there a way to deque the style with higher priority?
I agee with you 100%, but I don't really see this as an answer on my question: Is there a way to deque the style with higher priority? :-) I'm trying to figure out a way to remove the applied style in a sensible way (webkit_style.css), it's better that it is not used at all, because it just messes things up.
Feb
11
comment Why do I get jQuery reference error / undefined when changing name of plugin file?
Sorry but it did not work. Same error.
Feb
11
comment Why do I get jQuery reference error / undefined when changing name of plugin file?
I'll try that. Thanks
Jan
13
comment I don't understand why I shoud use lostpassword_url hook?
Ok, got it. Thank you!
Jan
6
comment Grab ID from post from plugin and use it to create an object
@s_ha_dum - updated question...
Jan
6
comment Remove header and footer but KEEP all css and js etc for a custom post template?
@RohitPande - It was not that I was looking for but you got me thinking a little differently and I came up with a solution. I've answered my own question in case someone stumble upon on the same issue.
Jan
6
comment Remove header and footer but KEEP all css and js etc for a custom post template?
Ok, but how that help me removing menus?
Nov
3
comment How to change a user's role depending on date registered?
Update subscribers to To Be Approved with an sql-script?
Oct
22
comment Is it possible to group ACF Fields for a custom post type?
I have purchased the repeater-field and it was really awesome! :-)
Oct
22
comment Is it possible to group ACF Fields for a custom post type?
@Marek - YES. Thank you! And I agree. They certainly deserve the money :-)