functions.php Archives

Update WordPress settings and options

Add this to your child theme's functions.php file. Hooked into WordPress makes this little wpsnipp.it ...

Read Article →

Get post-type info

This wpsnipp.it checks if the post-type passed in is of a certain type. This is ...

Read Article →

Enqueue files to a specific admin page

Instead of enqueueing files on every page load, you can use this wpsnipp.it to load ...

Read Article →

Check if a user has authored any posts

A simple way to check if a user has created any posts. Useful if you ...

Read Article →