Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //check if the wpMail class has been defined
- if (class_exists('wpMail')) {
- //initialize the wpMail class into an object
- if ($wpMail = new wpMail()) {
- global $Db, $Subscriber;
- $Db -> model = $Subscriber -> model;
- //fetch the subscriber
- //you can use 'id', 'email', 'ip_address' or 'user_id' for conditions
- if ($subscriber = $Db -> find(array('id' => 123))) {
- //now you can use the subscriber data according to your needs.
- print_r($subscriber);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement