Duplicated WordPress plugin activation issues. How to activate both plugins? - php

I have duplicated a WordPress plugin. Both plugins are working as I need, but the problem is that I can only activate one plugin at a time.
If one plugin is activated then the other plugin activation is not working without giving an error message. (I already have tried WP_DEBUG etc)
The plugin is a custom plugin so can't share the URL or name of the plugin.

First, you need to download the whole plugin and study the core functionality, change the plugin name to a new one, change all the variables used inside it to a new one.
Or you can check this link, there are some plugins
http://wpkicker.com/duplicate-plugins-wordpress/

Related

How to enable a wordpress plugin only on blog posts?

I would like to enable a wordpress plugin (this one: https://wordpress.org/plugins/chp-ads-block-detector/) only on my blog posts (and not on the whole site), can you help me please?
I have tried with adding a plugin to manage plugins as WP manager etc, but they allow to disable it only on pages and posts so the plugin still appears on woocommerce product pages.
At this time I don't want to create a subdomain for blog posts.
Is there a code that I can add to function.php? Or something else to do please?
Thank you,
You can use this plugin for disabling another plugin in certain conditions, in your case you can set the plugin to disable the https://wordpress.org/plugins/chp-ads-block-detector/ plugin everywhere except on blog posts

Envato theme check

I have converted HTML to Wordpress. That's why I have created some custom widgets and it's working fine. Now I am trying to solve error using Envato theme check plugin. I have solved most of the waring but can't solve. I can't understand what is the problem of this error?
As per the themeforest guideline, registering new widgets are not allowed inside the theme. register_widget is a plugin teritory function and should be called from a plugin. I suggest you to put that the code into a plugin and make that plugin required in the TGMPA list.
You can find a guideline here

Overwrite WordPress plugins in child theme

The WordPress plugin WooCommerce allows me to overwrite any of its files by making a copy of that file and placing it in my child theme directory. This does not work for other plugins.
How does this functionality work for WooCommerce?
Why doesn't it work for other plugins?
How can I make it work for other plugins?
Not all plugins need this functionality so it is not standard, it's just something you can allow your plugins users to do if it is relevant to its functionality / theming.
There is a great article here on how to achieve it for your own plugins, however you cannot apply this to existing plugins unless you want your copy of an existing authors work to fall out of date.
http://jeroensormani.com/how-to-add-template-files-in-your-plugin/
How does this functionality work for WooCommerce?
The magic is in the coding of Woocommerce. They have added functionalities in to cater for this because of the technicality of their system and the demand for customization.
Why doesn't it work for other plugins?
Woocommerce have added this functionality within their development to cater for this functionality, simply said other plugins have not added this functionality to extend or customize their add-ons.
How can I make it work for other plugins?
The answer to this is hooks. The same way plugins "HOOK" onto wordpress, you can create a hook to do the same for the plugin. Have a search at "custom hooks"
This is because WooCommerce has implemented this functionality in their plugin.
Overwriting plugins is not a Wordpress core functionnality.
You can't overwrite a custom plugin, the only way is to duplicate his content creating a new plugin, and customize this new plugin made by yourself..

Problems with my wordpress template made with bootstrap

I have been developing a site for the prelaunching campaign of our product on kickstarter.
I had coded the site in bootstrap and then ported it to wordpress.
The thing is that I installed the wordpress prelaunchr plugin. When I try to add the shortcode [prelaunchr] and update the page, appears nothing new on it.
Any kind of hint will be much appreciated.
I have checked the plugin with other wordpress themes and there is no problem so the root of the problem is the bootstrap ported template.
(here is the site, the only thing left is the input for the email which is the thing that prelaunchr generates)
www.pysmile.com

How to work email subscribe in WordPress?

There are many website those are using new WordPress theme as email subscribe option, like the below image
http://postimg.org/image/6kh8b1wfb/
and I wish I will add this subscribe option in my theme.I have styling idea but I haven't any WordPress functional idea how to working the subscribe option. I searched google but didn't got any information about it.
So I need informational article on it.
You can use wordpress plugins to achieve this functionality.You can install following plugins from your wordpress admin. The installation guide is given on the plugin page.
https://wordpress.org/plugins/newsletter/
https://wordpress.org/plugins/email-newsletter/

Categories