Luigino
Forum Replies Created
-
at the end I resolved! I had to use in the url “redirect_to”, not “redirect_url” as I written in main post….hope it can be useful for everyone uses multilanguage…. thanks to all anyway ?? Cheers!
- This reply was modified 2 years, 12 months ago by Luigino.
HI bcworks ,
First thank you for your answer! ??
In my scenario just I wanted to redirect to homepage in current language like example.com/es which is the language I was , not redirecting to italian language.
As I said in my main post , if I paste on browser’s URL address bar the link I see when I move the mouse over the item menu, then it works and the user is logged out remaining in current language but if I press the item menu it redirects to italian language…. so since the link is practically the same, then also the result should be the same as like I paste on browser’s URL address bar…or maybe I missed something?
Thanks again!
Cheers!- This reply was modified 2 years, 12 months ago by Luigino.
HI @jdembowski , thanks to have moved my question in the right place…and about woocommerce subforum I thought it was better before under wordpress because maybe the problem is that add_action itself that doesn’t fire…
In fact I changed the debug way with the @vijayhardaha suggest and it doesn’t create any debug.txt file so that means maybe that add_action I put in main plugin’s php file, which should activate a listener to that woocommerce event, doesn’t really fire…
Tried also with do_action but same thing… Any idea?..
Thanks! Cheers!Forum: Developing with WordPress
In reply to: how to pass _e() to php variable?YES! it was that _e() as you said Kaavya! Thanks a lot, you saved me !!! ?? Now I can continue… ??
- This reply was modified 3 years, 1 month ago by Luigino.
Hello Dion!
Thank you for your answer!
It looks like the problem was relating on returning result…
Usually I use “return $variable (or $object)” to return results to sender but in this case it looks like it needs “echo” to return results and in fact I see in Chrome’s response debug the json string.
Thank you again.
Cheers!Hi Alan.
– that “SELECT” is just a sample select from a certain table that returns some rows…
– before to add ob_start() and ob_get_clean() it was without ob_start() neither ob_get_clean() but I got still the error….
– I added ob_start() and ob_get_clean() because I thought that error could be cause by $wpdb->get_results() which runs thanks to wp-load.php inclusion without success anyway…Forum: Developing with WordPress
In reply to: On creating custom shortcode in a pluginHI bcworkz , I figured out how to manage shortcodes now… just had to refresh my mind because it passed some time since last time I coded a wordpress plugin… so thank you, bcworkz! ??
- This reply was modified 3 years, 3 months ago by Luigino.
Forum: Developing with WordPress
In reply to: call function from external class in add_menu_pageForum: Plugins
In reply to: [Polylang] Moving website to another server makes polylang breaking URLHad just to change AllowOverride from None to All into httpd.conf and it solved. Thanks anyway to all! ??
Forum: Plugins
In reply to: [Polylang] Polylang won’t show category posts even it looks OKSolved by myself: I had just to play with settings, in the specific I had to set option “language is set from contents” (first option) and unset the option to hide language informations from the URL and now it worked so now I can see posts in both languages
Forum: Localhost Installs
In reply to: WP 3.9 login's image doesn't appearHi Mark,
nevermind, I figured out by myself doing some debugs.
So I post here the solution for who is in the same situation:sometimes CentOS + Apache doesn’t have SVG support by default so it’s good to check in httpd.conf if there are present these lines:
AddType image/svg+xml svg svgz AddEncoding gzip svgz
Cheers!
LuigiForum: Plugins
In reply to: [Plugin: wp-db-abstraction on wp 3.8.1]Done by myself… had just to add parameters into plugin’s file.
Now I have to figure out the wordpress database error
[Incorrect syntax near ‘wpmxp_users’.] SHOW TABLES LIKE ‘wp_users’
only… Maybe is that error related to some syntax of new PHP version?…Cheers, Luigi
Forum: Plugins
In reply to: [Plugin: wp-db-abstraction on wp 3.8.1]Done by myself… had just to add parameters into plugin’s file.
Now I have to figure out the wordpress database error SHOW TABLES LIKE ‘wp_users’ only…
Maybe is that error related to some syntax of new PHP version?…
Cheers,
LuigiForum: Plugins
In reply to: [Shortcodes in Own Plugin] – Loading CSS and JSNevermind… solved by myself:
practically BEFORE to load the contents from html/php file I call plugins_url() so I can get correctly the whole url, then I replaced with str_replace() a constant in the content with the plugin url so I can feel ok.
Thanks again to all anyway
Ciao,
LuigiForum: Plugins
In reply to: Add_action in pluginNo directions about to look at to solve this little issue?…
Thanks in advance
Luigi