Checking update status and getting version number for plugin outside of the WordPress repository

I’ve been able to work out how to programmatically get the installed plugin version numbers for all the plugins on a site, and the current available version numbers from the repository… but how can I find out what the current available version is for plugins like Gravity Forms that aren’t in the repository? I’m looking…

How to add a custom taxonomy to a custom post type

I created a custom taxonomy and wanted to add it to the side-menu of my portfolio custom post type (in the admin area). My custom taxonomy is not loading, but the default one (‘category’) does. What did I miss? add_action( ‘init’, ‘add_taxonomies’ ); function add_taxonomies() { register_taxonomy( ‘related_service’, ‘portfolio’, array( ‘label’ => ‘Related Services’, ‘public’…

MY_MODULE_entity_bundle_field_info_alter not firing in multistep commerce checkout page

I am trying to add a custom validation constraint $fields[‘field_phone_number’]->addConstraint(‘CommercePhoneNumber’); via MY_MODULE_entity_bundle_field_info_alter but am having trouble getting the hook to fire off in my multistep checkout page inside the commerce module. I tried MY_MODULE_entity_base_field_info_alter as well but that did not work either. I’ve seen many examples online of adding custom constraints with this method, but…