Skip to content

Commit

Permalink
Debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Feb 12, 2023
1 parent b374b78 commit f1691b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/newonbotwiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,12 @@ public function post_update( $new_status, $old_status, $post ) {
}

} elseif ( $post->post_type === 'resource' ){
$post_id = $post->ID;
log_this(array(
'$post_id' => $post_id
));

$post_terms = wp_get_post_terms( $post->ID, 'resource_type' );

$post_terms = wp_get_post_terms( $post_id, 'resource_type' );
$term = $post_terms[0];
$resource_type = strtolower( $term->name );
$resource_type_slug = strtolower( $term->slug );
Expand Down

0 comments on commit f1691b7

Please sign in to comment.