Advertisement
verygoodplugins

Untitled

Jun 4th, 2020
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. function custom_format_edd( $value, $field_type, $field ) {
  2.  
  3.     if ( 'date' == $field_type && 'lifetime' == $value ) {
  4.         $value = strtotime( '+100 years' );
  5.     }
  6.  
  7.     return $value;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_format_field_value', 'custom_format_edd', 3, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement