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
<?php | |
function km_do_something_when_term_12_is_being_edited() { | |
$term = km_get_term_being_edited(); | |
if ( ! $term || 12 !== $term->term_id ) { | |
return; | |
} | |
// Put code here that should only run when the term with an | |
// ID of 12 is being edited. | |
} | |
add_action( 'admin_init', 'km_do_something_when_term_12_is_being_edited' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment