• I have made my own theme for my website.
    I use 2 plugins :

    • Shortcode Ultimate
    • Userpro social login

    Whenever I deactivate social login, Shortcode Ultimate works correctly but both of them don’t work correctly together.
    Is there any precautionary measures that need to be taken while building a theme?

    The plugins work fine together in the default TwentlyTwelve theme.
    What am I missing?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    That’s an unusual twist! Usually being careful to use only distinct names in the public namespace covers most conflicts. Most developers do this by prepending a unique string to all public variable, function, and class names, usually the initials of the theme or plugin name. For example, instead of a class named “Handle_Comments”, call it “NN99_Handle_Comments”.

    The other place conflicts can arise is from not returning or passing through proper values in filter callbacks. For instance in the ‘authenticate’ filter, other processes may return a WP_Error instead of a user object. Failing to honor that error in your own callback could cause issues on the site.

    Even if you do everything correctly, you could still encounter conflicts with another poorly written plugin while twentytwelve does not simply because twentytwelve does not use a particular name or filter while yours does. There could also be conflicts caused that are more freaks of circumstance than any error on any developer’s part. Only locating such conflicts would indicate where the problem lies.

Viewing 1 replies (of 1 total)

The topic ‘Precautions for plugin conflicts.’ is closed to new replies.