Tag: Pippin Williamson

Get a WordPress Image’s Attachment ID from its URL with a PHP Function from Pippin Williamson

pippin's plugins | retrieve image id from url
EDIT: As the comments below have pointed out, WordPress in later versions contains the attachment_url_to_postid() function, which is designed to do the job of the code below. However, on at least one project I’ve worked on (a WordPress multisite), WordPress’s function didn’t work and Pippin’s did. I’d try the WordPress function first and Pippin’s as a fallback.

You know who’s really great? Pippin Williamson.

Tips for getting your plugin approved on WordPress.org

As someone who’s written a lot of plugins andĀ helps manage the approval process on WordPress.org’s Plugin Repository, Pippin Williamson’s simple advice about the things that raise the attention of the moderators is great to know if you’ve ever thought about releasing a plugin publicly (anywhere) but shied away. It’s not nearly as hard or scary as it seems.