Skip to content

Instantly share code, notes, and snippets.

@tdrayson
Last active December 23, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tdrayson/22af27be4c537b2e878cf81881aa7b3f to your computer and use it in GitHub Desktop.
Save tdrayson/22af27be4c537b2e878cf81881aa7b3f to your computer and use it in GitHub Desktop.
//PHP Custom Code - plugins loaded
if ( function_exists( 'acf_add_options_page' ) ) {
acf_add_options_page();
}
function tct_field($field_name) {
return get_field( $field_name, 'option' );
}
function tct_field_link($field_name) {
return str_replace(' ', '', get_field( $field_name, 'option' ));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment