Created
March 19, 2019 13:00
-
-
Save kaskad88/69f887f52505ac232166fbe302666ba9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'jet-engine/listings/macros-list', '__your_prefix_add_jet_engine_new_marcos' ); | |
function __your_prefix_add_jet_engine_new_marcos( $list ) { | |
$list['current_year'] = '__your_prefix_jet_engine_current_year_cb'; | |
return $list; | |
} | |
function __your_prefix_jet_engine_current_year_cb() { | |
return mktime( 0, 0, 0, 1 , 1, date('Y') ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment