Created
May 16, 2017 13:50
-
-
Save chaselivingston/02ce698d075adeaee26f3ef64689f36a 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
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