| @@ -298,8 +298,17 @@ | ||
| 298 | 298 | 'user_id' => $post->post_author, |
| 299 | 299 | 'post' => $post, |
| 300 | 300 | ) ); |
| 301 | 301 | |
| 302 | + // Trigger post type publishing actions | |
| 303 | + gamipress_trigger_event( array( | |
| 304 | + 'event' => 'gamipress_publish_post_type', | |
| 305 | + 'post_id' => $post->ID, | |
| 306 | + 'user_id' => $post->post_author, | |
| 307 | + 'post_type' => $post->post_type, | |
| 308 | + 'post' => $post, | |
| 309 | + ) ); | |
| 310 | + | |
| 302 | 311 | $response['log'] .= sprintf( __( '[Publish a post] Post: %s User: %s Post Type: %s', 'gamipress' ), |
| 303 | 312 | '<a href="' . get_edit_post_link( $post->ID ) . '" target="_blank">' . $post->ID . '</a>', |
| 304 | 313 | '<a href="' . get_edit_user_link( $post->post_author ) . '" target="_blank">' . $post->post_author . '</a>', |
| 305 | 314 | $post->post_type |