Beee
Forum Replies Created
-
Forum: Plugins
In reply to: [TI WooCommerce Wishlist] Invalid argument for foreachThanks for your code but that wasn’t the reason I posted it.
I know how to fix it. Was more to inform plugin author.Forum: Plugins
In reply to: [ACF City Selector] Can’t Activate the PluginI just tried activating it on a clean install and didn’t get any errors/problems.
Forum: Plugins
In reply to: [ACF City Selector] Can’t Activate the PluginIt looks like you have no countries in your database.
If you look on line 31 you see that is where the countries are retrieved.
If by some chance this fails you have no country code.
I will look into this to see if the function is called before the countries are inserted.
- This reply was modified 3 years, 8 months ago by Beee.
Forum: Plugins
In reply to: [3CX Free Live Chat, Calls & WhatsApp] Open chat tirggerI was looking for that as well.
Edit: just found the answer in this topic https://www.ads-software.com/support/topic/can-no-longer-add-triggers/#post-13275087
Forum: Plugins
In reply to: [3CX Free Live Chat, Calls & WhatsApp] Can’t open chat with button or link.I’m new to the plugin, but was looking for this specific feature, so tagging along for info.
EDIT: found the answer here: https://www.ads-software.com/support/topic/can-no-longer-add-triggers/#post-13275087
- This reply was modified 4 years ago by Beee. Reason: Add answer
thanks
Forum: Plugins
In reply to: [Redirection] REST examplesIn the last code block you see I tried several variations but they didn’t work.
As you can see I am approaching it differently than you probably would.
I’ve been tinkering with it for hours and I can’t get it right.That’s why I was hoping you could provide an example with a simple query.
You say you never use rest_do_request. Can you maybe share an example you use ? I think it would help a lot…
Edit: I tried your suggestion, didn’t work.
Forum: Plugins
In reply to: [Redirection] REST examplesI tried adding the parameter like this:
$request = new WP_REST_Request( 'GET', '/redirection/v1/redirect' ); $request->set_param( 'status', 'disabled' ); $response = rest_do_request( $request ); $data = $response->get_data();
which I got from https://developer.www.ads-software.com/reference/classes/wp_rest_request/set_param/
I also tried
$request->set_query_params( [ 'status', 'disabled' ] );
As I said I have seen/read the page you linked, but it seems I don’t quite get the needed/required syntax.
I tried adding them to the request URL directly but it gave no changes in the $data variable.
$request = new WP_REST_Request( 'GET', '/redirection/v1/redirect/?filterBy[status]=disabled' ); $request = new WP_REST_Request( 'GET', '/redirection/v1/redirect/?filter[status]=disabled' ); $request = new WP_REST_Request( 'GET', '/redirection/v1/redirect/?status=disabled' );
All 3 gave the error: rest_no_route.
I think it’s just the syntax I have wrong… If I can get past that…
Forum: Plugins
In reply to: [Redirection] REST examplesThanks for the reply.
I have tried using several examples, but didn’t get there yet. I noticed 1 incorrect thing, which (when fixed) resulted in getting a result on a default get request, when I used this code.
$request = new WP_REST_Request( 'GET', '/redirection/v1/redirect' ); $response = rest_do_request( $request ); echo '<pre>'; var_dump($response->get_data); echo '</pre>'; exit;
I then tried to add a paramater to try and understand the syntax/setup.
$request->set_param( 'status', 'enabled' );
But $response->get_data stays the same when I change enabled to disabled.
I think my parameter syntax might off on how to add parameters, but I can’t find any info that explains it to me.
Would appreciate some help if possible.
- This reply was modified 4 years ago by Beee.
Forum: Plugins
In reply to: [Cloudflare] WP-CLI SupportIsn’t the option in here ?
https://developer.www.ads-software.com/cli/commands/cache/Or can I call it with a function ?
I can create a shortcode which calls that function.I don’t think you understand how forums work…
I start a topic for my issue… if you reply, it should be regarding that issue. Otherwise create a new topic for your issue. Please read the forum rules.
Please create your own topic instead of hijacking mine, thank you.
@kalum76 I am not quite sure what you mean.
The question at hand is: how can I reload the page when clicked on a tab link, instead of switching it with ajax ?
Thanks for your answer, but as you can read in my follow up posts, I tried that but didn’t work. The ajax action still ‘took’ over.