Find Jobs
Hire Freelancers

Update PHP Filter for Gravity forms to display current time + 1 hour added to it.

$10-30 USD

Closed
Posted almost 6 years ago

$10-30 USD

Paid on delivery
I'm using this gravity form filter below which allows me to pre-populate the current time. I need the filter to be modified to display the current time + 1 hour. add_filter( 'gform_replace_merge_tags', 'djb_gform_replace_merge_tags', 10, 7 ); /** * Replace custom merge tags. * * @link [login to view URL] * * @param string $text Current text in which merge tags are being replaced. * @param object $form Current Form object. * @param object $entry Current Entry object. * @param boolean $url_encode Whether or not to encode any URLs found in the replaced value. * @param boolean $esc_html Whether or not to encode HTML found in the replaced value. * @param boolean $nl2br Whether or not to convert newlines to break tags. * @param string $format Determines how the value should be formatted. Default is html. * @return string Modified data. */ function djb_gform_replace_merge_tags( $text, $form, $entry, $url_encode, $esc_html, $nl2br, $format ) { if ( strpos( $text, '{current_hour}' ) !== false ) { $text = str_replace( '{current_hour}', current_time( 'g' ), $text ); } if ( strpos( $text, '{current_minute}' ) !== false ) { $text = str_replace( '{current_minute}', current_time( 'i' ), $text ); } if ( strpos( $text, '{current_am_pm}' ) !== false ) { $text = str_replace( '{current_am_pm}', current_time( 'A' ), $text ); } return $text; } ?> My budget is $10 and I can make payment on this Monday. I need this to be completed asap!
Project ID: 16741499

About the project

6 proposals
Remote project
Active 6 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
6 freelancers are bidding on average $28 USD for this job
User Avatar
I will update php filter for gravity form to display current time plus added 1 hour. I will complete this work in a day. Looking for your reply to start this work immediately. I will be available online from 2 am GMT to 5 pm GMT individual full-time freelancer.
$15 USD in 1 day
5.0 (1180 reviews)
8.0
8.0
User Avatar
Dear Sir! I make Update PHP Filter for Gravity forms to display current time + 1 hour added to it. ++ This is my job. I'm ready to begin now. Pm for me. Please check my reviews and profile https://www.freelancer.com/u/ProfSoftStudio.html
$25 USD in 1 day
4.8 (53 reviews)
5.3
5.3
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
im not really familiar with gravityforms but i only have to modify a function right? im pretty sure i can handle it.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Louisville, United States
5.0
4
Payment method verified
Member since Nov 12, 2009

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.