get current page slug

122

get current page slug -

$slug = get_queried_object()->post_name;

Comments

Submit
0 Comments