giuliovale
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Cassify] Login not redirect to cas ( php7 vs php8 )<?php
var_dump( strrpos( "test", "") );PHP8 return int(4)
PHP7 return bool(false)
Thanks for reply but the problem is not first order discount…
but something like pre-order (production on demand) or better same product with different price.
Example:
The product A price is:
1 week before production 50 €
3 week before production 35 €Thanks
- This reply was modified 3 years, 6 months ago by giuliovale.
Forum: Plugins
In reply to: [Co-Authors Plus] Adding or changing author no longer workingProblem came from change of:
$found_user = $this->get_coauthor_by( ‘user_nicename’, $found_term->slug );
to
$found_user = $this->get_coauthor_by( ‘user_nicename’, $found_term->name );
Forum: Plugins
In reply to: [Query Monitor - The developer tools panel for WordPress] dumpHi I made a little hack/test (btw I’m not a wordpress developper)
put this inside query-monitor.js
$(function(){ $('<input></input>').attr({'type': 'button','style':'height:18px;'}).val("+").click(function(){ var valuetopast = $(this).parent().html().replace(/\<br\>/gi,'\r').replace(/(<([^>]+)>)/ig,""); var myWindow =null; var windowstyle ="width=800, height=800 "; myWindow = window.open("phpminiadmin.php","",windowstyle); $(myWindow).load(function(){ myWindow.document.getElementById("q").innerHTML = valuetopast; }); }).appendTo($('td.qm-row-sql')); });
and add phpminiadmin.php from phpminiadmin.php inside root of my wordpress.
With this little hack I can debug on demand all the query from frontend.
Yes I know there is really a little security etcgiulio
Forum: Plugins
In reply to: [Query Monitor - The developer tools panel for WordPress] dumpHi, thanks for reply.
I need to debug some plugin so my idea is to make a step by step query to see if the results are correct.
Until now I make this with phpmyadmin where I paste the query that query monitor show into footer.
A possible idea is something like have a button aside every query that show the result inside another window or popup?Forum: Plugins
In reply to: [Query Wrangler] Post parent filterThanks now work
Forum: Plugins
In reply to: [Query Wrangler] Post parent filterArray ( [paged] => 1 [posts_per_page] => 5 [offset] => 0 [post_status] => publish [orderby] => date [order] => DESC [cat] => 19 )