WordPress/ClassicPress Plugin Development: Checking If Function Exists In Namespace

WordPress PluginI’ve been developing my own plugins for WordPress and, more reently, ClassicPress. At times it’s been necessary to check if a function exists.

It’s fairly straightforward to do this check:

if (!function_exists('azrcrv_get_breadrumbs')){
	// code here
}

I also use a few plugins developed by other people. One of the ones I’ve been reviewing recently is Estimated Read Time by CodePotent.

John uses namespaces in his plugins which means the check also needs to include the namespace. You can check for this using the following syntax (the highlighted section is the namespace defined in the plugin):

if (function_exists('CodePotent\EstimatedReadTime\process_shortcode')){
	// code here
}

I’m posting this as a reminder to myself as it took me a few minutes of searching before I found the right answer.

Implementing SmartConnect: Series Index

eOne SolutionsSmartConnect is an integration tool from eOne Solutions which can take data from any source and integrate it into Microsoft Dynamics GP (and other systems such as Microsoft Dynamics CRM or Sales Force amongst others). It has a drag and drop interface to make creating integrations quick and easy for all users rather than just developers (as many integration tools target).

I’ve known about SmartConnect for quite a long time now, but have only just started working with it and thought a series of posts on the installation and configuration process might be useful to do.

The index below will update as each post goes live if you are reading directly here (if you’re reading on a syndicated version, you will need to check back to the original post).

Implementing SmartConnect
Who Are eOne Solutions?
Introduction
SmartConnect vs. Integration Manager
System Requirements
Prerequisites
Installation
Configure Windows Service
Assign SQL Login Security
Install GP Addin
Update GP Cache
Console First Run
Configure GP Connector
Configure Security
Run System Maintenance
Verify Connector Working
Conclusion