kriskhoury
11/20/2019 - 5:01 PM

lock WP Get the Post Slug

function the_slug() {
	$post_data = get_post($post->ID, ARRAY_A);
	$slug = $post_data['post_name'];
	return $slug;
}