private function get_tags( $post_id ) {
		$tag_data = get_the_tags( $post_id );
		$tag_arr  = [];
		if ( $tag_data ) {
			foreach ( $tag_data as $tag ) {
				array_push( $tag_arr, $tag->slug );
			}
		}

		return $tag_arr;
	}
private function get_tags( $post_id ) {
		$tag_data = get_the_tags( $post_id );
		$tag_arr  = [];
		if ( $tag_data ) {
			foreach ( $tag_data as $tag ) {
				array_push( $tag_arr, $tag->slug );
			}
		}

		return $tag_arr;
	}
private function get_tags ( $ post_id ) { $ tag_data = get_the_tags ( $ post_id ) ; $ tag_arr = [ ] ; if ( $ tag_data ) { foreach ( $ tag_data as $ tag ) { array_push ( $ tag_arr , $ tag -> slug ) ; } } return $ tag_arr ; }
Get Tags of a post.

@param $post_id ID of the post.

@return array
Get Tags of a post .