Skip to content

Instantly share code, notes, and snippets.

@kaskad88
Created March 19, 2019 13:00
Show Gist options
  • Save kaskad88/69f887f52505ac232166fbe302666ba9 to your computer and use it in GitHub Desktop.
Save kaskad88/69f887f52505ac232166fbe302666ba9 to your computer and use it in GitHub Desktop.
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