Tag Info

Hot answers tagged

3

While this question is probably technically off topic since it relates to woo, there's definitely some stuff that could be answered that will help other users in the future, plus, I really have been there with the multi-day frustration stuff and would have killed for a life line. There's a few things at play here, what you're looking at in the code you ...


2

Sessions are basically useful for having data persist between pages. If you're using ajax calls, then you shouldn't need sessions at all, as you can easily pass parse/pass data on the fly, including other templates/files. On that note, WP has a built in ajax handling system. If you're unfamiliar with it, I'd suggest checking the WP codex. As for securing ...


1

Yes, you can but you will get errors about the header already being sent unless you hook into init or admin_init (or elsewhere prior to the headers being sent). I haven't tested it, but you may be able to hook your session function into the send_headers action1 which seems like the most appropriate place since session is ultimately sending headers. On a ...


1

Very old, but this still come up when searching, so I will add that my article WooCommerce Customize Checkout Fields here is a sample of adding a new checkout field: // Add a new checkout field function kia_filter_checkout_fields($fields){ $fields['extra_fields'] = array( 'some_field' => array( 'type' => 'text', ...



Only top voted, non community-wiki answers of a minimum length are eligible