Ploeve
Forum Replies Created
-
any news on that?
With 4.1 the admin box does not even show up on CPT-edit-page.
thanks
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Ajax Add to cartGot it working.
That was the problem.
The random-ID needs to be updated on each update of the cart.Something like:
myForm.find(“input[name=randomid]”).val(obj.randid);Next challenge will be a manual checkout.
thanks
Forum: Plugins
In reply to: [Simple Cart & Buy Now] Ajax Add to cartRight now I’m already pulling the cart with ajax.
The push of new items is still not working correctly.The first push is done, but then it skips because of this line:
if ( isset($_REQUEST[‘randomid’]) && $_REQUEST[‘randomid’] == $cart->random() )
the random ID of the form stays the same, is that a problem?
thanks
Forum: Hacks
In reply to: Randomize order of posts every second dayHi,
thanks, yes, that is what I need.
I’ve just some 50 post to sort, so I guess it is okay.
How can I change an option via a scheduled event?Can I do it like this in the functions.php of the theme?
add_action( 'wp', 'prefix_setup_schedule' ); /** * On an early action hook, check if the hook is scheduled - if not, schedule it. */ function prefix_setup_schedule() { if ( ! wp_next_scheduled( 'prefix_hourly_event' ) ) { wp_schedule_event( time(), 'hourly', 'prefix_hourly_event'); } } add_action( 'prefix_hourly_event', 'prefix_do_this_hourly' ); /** * On the scheduled action hook, run a function. */ function prefix_do_this_hourly() { // do something every hour }thanks
Forum: Hacks
In reply to: Print post-list in wp-adminthank you,
but any other possibility to really print the list via a hardware printer?
thanks