Find Jobs
Hire Freelancers

Mailpoet/WYSIJA: Get value of custom fields

€10-30 EUR

Completed
Posted about 8 years ago

€10-30 EUR

Paid on delivery
GENERAL REQUIREMENTS: - You are a professional php-developer - You know Wordpress ([login to view URL]) - You know the Wordpress plugin Mailpoet / WYSIJA ([login to view URL]) - If needed I can grant you access to a test website with wordpress and Mailpoet PROBLEM: In Mailpoet it is possible to create custom fields, let's say the ZIP of a client. I want to read out the VALUE of this field, but I didn't find a way to get it. POSSIBLE HINT TO SOLVE IT: I found this Mailpoet function, which returns the NAMES of the custom fields, but not the VALUES WJ_Field::get_all(array('order_by' => 'name ASC')); RESULT: Array ( [0] => WJ_Field Object ( [table:WJ_Field:private] => wp_wysija_custom_field [user_table:WJ_Field:private] => wp_wysija_user [id] => 1 [name] => PLZ [type] => input [required] => [settings] => Array ( [required] => 0 [validate] => ) ) ) YOUR TASK: Develop a piece of code which returns the VALUES of a custom field of Mailpoet.
Project ID: 10204922

About the project

5 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, I can add a function to your theme. So, you can use that function to display value of custom field. Thanks.
€29 EUR in 1 day
4.9 (410 reviews)
7.7
7.7
5 freelancers are bidding on average €30 EUR for this job
User Avatar
Hi there - My name is Jhalak. I’ve read your brief and can see that you’d like to build an Website. My team has 4 years experience designing and developing mobile apps and Websites. I would approach your project by starting with wireframes and getting the site completed, before starting the actual development phase. I am highly qualified for this project and would love to speak with you further about taking this project on. If you'd like to view my previous work, take a look at my Freelancer Portfolio. Regards, Jhalak Thanks, Diamond looking forward for your reply.
€24 EUR in 1 day
4.8 (46 reviews)
5.0
5.0
User Avatar
Hi, I checked the source code of mailpoet, and found a class WJ_FieldUser. Class WJ_Field access the wp_wysija_custom_field table which saves the name and setting of the custom fields, and the value of the custom fields for every user saves in the wp_wysija_use table. You can use the following code to get the value of custom fields of a user: $UserFields = WJ_FieldUser::get_all(1); foreach ($UserFields as $field) { $field->value = $field->value(); $collection[] = $field; } print_r($collection); Sincerely, Emily
€10 EUR in 1 day
5.0 (1 review)
1.0
1.0

About the client

Flag of GERMANY
Munich, Germany
4.9
5
Payment method verified
Member since Sep 7, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.