Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaselivingston/02ce698d075adeaee26f3ef64689f36a to your computer and use it in GitHub Desktop.
Save chaselivingston/02ce698d075adeaee26f3ef64689f36a to your computer and use it in GitHub Desktop.
function jeherve_publicize_hashtags() {
$post = get_post();
if ( ! empty( $post ) ) {
// Create our custom message
$custom_message = ' ';
update_post_meta( $post->ID, '_wpas_mess', $custom_message );
}
}
// Save that message
function jeherve_cust_pub_message_save() {
add_action( 'save_post', 'jeherve_publicize_hashtags' );
}
add_action( 'publish_post', 'jeherve_cust_pub_message_save' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment