Lukket

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

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!

Evner: Javascript, MySQL, PHP, Software Arkitektur, WordPress

Se mere: gravity forms post updates, gravity forms update existing entry, gravity forms update existing post, gravity forms custom php notifications, crystal report display current time, current issues update php, php gravity forms notification, gravity forms plugin update, display page time sql php, php playlist current time, save current time mysql php, php display current twitter status, display current time vb textbox powerpoint, current time update website templates, add number months current time php

Om arbejdsgiveren:
( 4 bedømmelser ) Louisville, United States

Projekt ID: #16741499

6 freelancere byder i gennemsnit $28 på dette job

sureshdevi

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 GM Flere

$15 USD på 1 dag
(1180 bedømmelser)
8.0
rinkul123

Hello, I am Debasish. I can make Update PHP Filter for Gravity forms to display current time + 1 hour added to it. I have more than 5 years of experience in working on professional websites and blog designs as well Flere

$55 USD på 1 dag
(110 bedømmelser)
6.9
einnovention

Hi! I read your project description. We are ready to assist you day and night, 24/7. We have diversity of skills with lot of experiences in PHP, C Programming, CSS, HTML, Word press, Graphic Design, Web Design, Respo Flere

$25 USD på 1 dag
(101 bedømmelser)
6.3
ProfSoftStudio

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 [login to view URL] Flere

$25 USD på 1 dag
(53 bedømmelser)
5.3
nikesh11

A proposal has not yet been provided

$25 USD på 1 dag
(0 bedømmelser)
0.0
jimtrinidad20

im not really familiar with gravityforms but i only have to modify a function right? im pretty sure i can handle it.

$20 USD på 1 dag
(0 bedømmelser)
0.0