// Register custom GamiPress trigger add_filter( 'gamipress_triggers', 'custom_register_post_category_trigger' ); function custom_register_post_category_trigger( $triggers ) { $triggers['publish_post_in_exposed_category'] = array( 'label' => __( 'Publish a post in Exposed category', 'gamipress' ), 'action' => 'publish_post_in_exposed_category', 'tags' => array( 'post', 'publish' ), 'callback' => 'custom_check_post_category' ); return $triggers; } // Detect category and fire custom trigger function custom_check_post_category( $post_id ) { $post = get_post( $post_id ); if ( $post->post_type !== 'post' ) return; if ( $post->post_status !== 'publish' ) return; if ( has_category( 'exposed', $post ) ) { gamipress_trigger_event( array( 'event' => 'publish_post_in_exposed_category', 'user_id' => $post->post_author, 'post_id' => $post_id, ) ); } } add_action( 'publish_post', 'custom_check_post_category', 10, 1 );

Sorry, there was no activity found. Please try a different filter.

©2013 -   Exposedfaggots.com - Where faggots come to show themselves off

Featured Fags

New Report

Close

Log in with your credentials

Forgot your details?