strae
Forum Replies Created
-
OK OK OK
Sorry
Is working, my bad
After the checkout, you need to go into the WP backend and set the order as ‘Completed’, even if (like in my case) the product’s price is 0 so no payment was required.Forum: Plugins
In reply to: Members plugin (content permissions): how to tell post content from teaser?up?
Forum: Fixing WordPress
In reply to: Bootstrap Not WorkingMy code looks like the one you posted, but is within my php class and after the first include i got redirected to ./wp-admin/install.php
I was wondering if you found out a solution to do that inside a class..
I can not require wp bootstrap before initialize my class, becose some plugin my customer is using interfere to some path I use returning 404.
After some research, i found this other way:
[inside my class] public function do_something_wp($data) { include(MYWP_PATH . 'wp-settings.php'); $wp->initialize(); wp_insert_user($data['user'], $data['passwd'], $data['email']); }but i get the same result of the previous bootstrap.
I wonder why this happens just while using a class…
Forum: Fixing WordPress
In reply to: Bootstrap Not WorkingHi, i have the same problem, im using a simple application i wrote in OOP and i need to create users to wp via wp_create_user (to syncronize my app users with wp).
Did you find a solution?