Tag Archives: check


Snippet: Check for hierarchy descendant

Add following snippet to “functions.php” Snippet Result A conditional function to check if the current page is a descendant of the ID given to it. Useful for determining if a page is a grandchild, great-grandchild or father down the hierarchy tree.

Snippet: Check current post for the existence of a short code

If you want to check if a short code exists before performing some action. `has_shortcode` is a custom function that will check short code’s availability.