I'd like to ask what is the best way to edit somebody else's plugin in a way if they do the updates and I apply them it won't wipe out my additions?
I was wondering if creating php file inside the plugin folder and adding the plugins functions would be ok?
Editing WordPress plugins is not similar to WordPress themes, i.e. creating a child plugin.
Best way to do is following this tips: https://iandunn.name/the-right-way-to-customize-a-wordpress-plugin/
You can create a fork of the plugin or use custom hooks to edit the plugin.
Related
this is the first time i am trying to make wordpress theme and i have made it all but i am stuck on page builder. I want my user to edit my theme with wp bakery page builder. I have seen many videos and read many blogs but no one satisfied me because my question is very simple.
I want to integrate wpbakery page builder in my theme so when someone download my theme, the wpbakery page builder should download automatically. to get this what should i do ? i saw some themes have this option when i download their themes there was wpbakery page builder already in the theme. how are they achieving this ?
I am sorry i am asking silly question but i did not find this answer in any platform. please share some links too so i can learn this.
TGM plugin is generally used in many themes to define suggested and required plugins for themes.
You can find the GitHub Repo here: https://github.com/TGMPA/TGM-Plugin-Activation and check the example.php file to understand the implementation based on external and internal plugin zip files.
You can also read the installation process here http://tgmpluginactivation.com/installation/
Or you can check the source code of other themes that use TGM plugin, and you can learn the code writing from those themes.
I am beginner for wordpress and woocommerce, my requirement is to create a custom plug-in just same as product plug-in and from preset.
So, I want to know how I can achieve this functionality?
Please find screenshot for same from here:
You could create a regular WordPress plugin. WordPress has a very good Handbook for creating plugins.
Generally you create plugins by hooking in the system. You can insert functionalities (actions) or change content (filters) with these hooks. WordPress itself and most common plugins like WooCommerce have such hooks to customize whatever you want via Plugins.
Be sure to check out the Woocommerce Documention on that topic and also their Hook Reference. Maybe it isn't even necessary to create a plugin … customizations via hooks can also be achieved from within your themes functions.php.
I apologize if this has been asked before, but after doing some research, I could not find any resources answering this specific question of mine.
I'm trying to use the Redux framework in my WordPress theme. I used the builder to get started, which is linked to on the plugin page. I customized my framework there and chose the option of "embed only" (Embed Only: TGM is not used and Redux is embedded within the theme/plugin). I also exported as a custom theme, which uses Underscores. As a result, I now have admin directory inside of my theme, with an "options-init.php" file in it. I've been modifying this file to add my options. Is this right? In the documentation it mentions to look for a sample-config.php file, and to copy that and modify it, but I can't find that anywhere. I want to make sure I'm doing this right before I get too far and find an issue.
Also, how do I make sure the framework stays up to date with the latest security patches? Is it a better idea to install it as a plugin rather than embed it in the theme itself?
Lead dev of Redux Framework here. It is very much a better idea to run Redux via a plugin if you want your users to have security updates.
Another option is to embed redux, but to use TGM to suggest for users to install the plugin. This way your theme is not dependent on Redux, but the moment they install the plugin, that version of Redux will take over.
It's up to you, but the plugin is the way to go.
I am a newbie to wordpress and recently created a website using typo3 for a project at university (as my university servers are configured with typo3). I created the template using Templavoila and twitter bootstrap. I now have to use wordpress theme-HUGE as it is more interesting and suggested by the project partners. I have no idea if wordpress theme could be used on typo3 machine. If yes, how much overhead might occur? Could anyone provide some information on this?
Thanks
Wordpress themes files can't directly be used in TYPO3.
I would suggest you create a new TYPO3 template using the template engine of your choice and then rebuild the HTML structure of the Wordpress template. If your resulting HTML is exactly the same as for the Wordpress theme, you can use the included CSS and images.
If you want to go the easy way, use wordpress for the wordpress theme.
As said above, moving the css from wordpress to TYPO3 is not that hard. But you can not easily move the functionality of a wordpress theme to TYPO3. You have to rebuild it in TYPO3. And that will make a big difference.
For example:
Assume you have to set up a slider element, which is included in the theme. When you use the theme in wordpress, you just need to activate it in the settings.
In TYPO3 you will have to build a custom element, either by building an own extension or using one of the common custom element extensions like DCE oder FLUX. (Don't use TemplaVoila anymore, it's outdated).
And a slider is a easy task compared to the case, that your partners say "hey, we forget the nice blog we have in our theme, let's activate it!".
This might take you 2 clicks in the theme settings in wordpress, but if you want to port that feature to TYPO3 you should really know something about programming TYPO3 Extensions with extbase and fluid.
It might be a great project for learning TYPO3. But if it is a real project, with a real deadline, you will have a much more fun with it, when you use the wordpress theme in the way that it was meant to be used.
I have been developing plugins for WordPress. Most plugin I have developed with two three classes and not so huge like Buddypress, WooCommerce or etc.
I am planning to make two open source plugins to deliver some sort of complex system (detail can't share you at the moment but later during the development) where other developers can customize functions and system for them need same as Buddypress and WooCommerce.
As I check those plugins files and realize they have register them own action and filters which developers can modify as per them need. But my problem is unable to understand completely how I should write the plugin where other developer have flexibility to override plugin function as well as they can add them own.
I know it is difficult to give definite answer but I need some sort of start-up guide so I can go into right direction. Do I need to register my action and filters? If yes how to do? if not than how can I do?
Your hint will help me a lot... Thanks a lot
You can check WordPress-Plugin-Boilerplate, it should get you started on the right path.
It may be useful to use wp-cli for generate plugin like so:
wp scaffold plugin my-plugin
Or using "WordPress Plugin Boilerplate" for more complex works: https://wpbp.github.io/wiki.html