Check if MemberPress exists before add_action call

Since I do not have access to the plugin to confirm I’ll use generic info and updated my answer since I was using the demo they had in their docs. This works in the functions file or on the frontend. // check for plugin using plugin name if(in_array(‘plugin-directory/plugin-file.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))){ //whatever you need goes here. … Read more

WordPress get id from json data with json_decode()

json_encode takes an array/object and turns it into a JSON string. json_decode takes a JSON string and turns it into a PHP array/object/etc With this in mind, we can see some critical mistakes are made in the code, caused by muddling up the two. You’re taking a string of JSON and JSON encoding it, aka … Read more

rss feed code help

Not entirely sure. This is template tag and should be used in Loop, but for single post page it works fine most of the time even outside of Loop. Seems to from quick test. Disregard that. The issue is you were forgetting to echo it. 🙂 Also there is specialized template tag for comment feeds: … Read more

Errors when using CDN Sync Tool plugin

What OS you running? As this actually sounds like an AWS php sdk issue. Having a look though their source code shows they don’t seem to use fclose and your OS must have a limit on open files. If you email me at iain.cambridge – at – fubra.com I’ll send you a copy of the … Read more

custom registration form [duplicate]

you can use Cimy User Extra Fields , its a plugin that lets you add extra user fields to the registration form. or you can create your own custom registration page with your extra fields by following this great article http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/