Created
October 16, 2017 14:07
-
-
Save gabrielmerovingi/5ae8dbe90d0f51b22e0867b3d98c183d to your computer and use it in GitHub Desktop.
Log the event under a unique reference based on the post type being published.
This file contains hidden or 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
/** | |
* Adjust Publish Reference | |
* Log the event under a unique reference based on the post type being published. | |
* @version 1.0 | |
*/ | |
function mycred_pro_publish_ref_by_type( $reference, $post ) { | |
return 'publish_' . $post->post_type; | |
} | |
add_filter( 'mycred_publish_hook_ref', 'mycred_pro_publish_ref_by_type', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment