Wordpress New Plugin Issues - php

I have created a wordpress plugin from scratch. When I check other plugins in Wordpress admin. If there is any update in Plugins installed page, I can see a message
Say, for e.g Contact Form - I am right now getting a message
There is a new version of Contact Form 7 available. View version 3.7.2 details or update now.
What will I have to do so that people come to know any new version of my plugin is available.
What will be case If the plugin is free and also incase it is paid.
One last question How do add the feature to check for wordpress compatibility of the plugin. Since I have programmed it to work on Wordpress version 3.8.1. How can I be sure that the plugin will also work on lower versions of wordpress 3.8.1. Is installing it on every wordpress version and testing the plugin the only way to know. Or is there any simple approach to know the plugin will be compatible.
Thanks in Advance.

At first, you have to develop the plugin by following the WordPress standard coding guide lines and then you have to submit the plugin to WordPress Plugin Directory and if your plugin get approved then you have to keep it in the WordPress plugin repository. There are several steps for doing this, so you should follow the steps, at first begin from Writing a Plugin.
You also have to be familiar with Subversion (SVN) and ael these takes quite a time to complete the complete process from developing to submitting till approval of your plugin. Also, remember that, the community/team who check plugins submitted by plugin authors are professionals and it could be possible that your plugin might be rejected if the plugin doesn't match the criterion of the standard WordPress plugin, such as licensing, coding style etc.
You may also check this link for useful resources about writing a plugin. It may sounds scary but it's not impossible and very easy, just follow the instructions and keep going on.
If your plugin finally get approved and saved in the plugin repository by you then every time you update your plugin source, it'll be visible in the admin panel of a user who is using your plugin but there are some process related with it, you should keep reading and you'll get the idea. It's not possible describe everything here, it's too broad. Everything you need about plugin development, the first place is the Codex to look information for.

Related

WordPress Multisite Customize Error

I have a WordPress multisite build with 9 different themes running. Everything is working okay, I've used Redux Framework on most of them but I'm not able to use the native WordPress customizer, I receive the generic, "Cheatin’ uh? Sorry, you are not allowed to customize this site." error. I am a super admin so I don't believe it's a permissions issue. I'm not able to use the customizer on any of the sites, so I'm thinking it's a core issue but I'm not sure where to look. Any suggestions would be greatly appreciated.
Many people have same issue after update to WordPress 4.7x.
I see someone fixed this issue using this method:
install the plug-in [User Role Editor][1]
go to Users->User Role Editor
select Role: Administrator at the top
check the row edit_theme_options
click on Update
confirm the message box

Proper way to update WordPress plugin (for updates)

I am making a woocommerce website and I was wondering what is the best way to update plugins (details) and still be able to update the plugin.
For example, I have two plugins that I just want to change the content in them like the currencies in woocommerce writes د.ب which is in Arabic Bahraini Dinar and I wanted it to be BHD.
Also another example I wanted to change in the wc-vendor plugin the namings instead of calling them vendors I want to call them artists.
I been reading articles about the best methods to update a plugin but I am not sure if they are also valid if I just wanted to change the "Naming" not "functionality"
https://www.seedprod.com/customizing-wordpress-plugins/
Summary:
I appreciate if you can tell me how to change plugin content and still be able to update it.
Thanks!
If you're using plugins developed by others, you may have more problem again in the future if the plugins update. Ask the developer or create an issue regarding the problem. Unless you're writing it of your own, you can play the changes locally or create an staging environment. If sound no problem, that's the time you need to replace code in plugins directory.
I assume, upstream developers are not able or willing to provide hooks for your need.
If you really must modify a plugin, put the plugin source code in a version control system (Git, Mercurial, ...). Make a branch for your changes, and each time a new upstream version comes up, import the upstream version and forward merge your modifications.

WooCommerce shows two sets of all payment methods

After a long time I finally updated WooCommerce with the latest update.
Now, in the checkout, it shows two sets of all the available payment methods.
I have been looking at the file review_order.php in the woocommerce folder but I couldnt find a solution there.
Do any of you know what the error might be and where I should look for the bug?
I appreciate all the information you can give me!
FYI: I can´t contact WooThemes since the solution is bought from many years ago and I dont have the license.
I had the same problem. You need to update the template overwriting files in your theme.
My issue was that the template files in woocommerce/templates/checkout/review-order.php was different from the one that was overwriting it in my theme.
The theme I used had some pre-packaged templates and all I had to do was copy the code from the new WooCommerce version over to the theme.
It was clear when you look at the file header that there was updates. I was on 2.1.3 and the latest that comes with the plugin is 2.3.0.
WooCommerce warns you about out dated template files all the time... but the work involved updating them sucks.
Good Luck!

adding new module in wordpress

I'm sorry if my question is not good quality.I have problem when I want to understanding wordpress , I'm new in wordpress, and I want to create some module in wordpress, It's Possible?
ex.
if i want to add module, what must I'm studying in wordpress ?
Joomla usually refers to a module. Writing one in WordPress is considered a plugin. You should start studying the Codex and it will lay what you need to do out for you.
You can find that on the WordPress site at Writing_a_Plugin
WordPress Plugin: A WordPress Plugin is a program, or a set of one or more functions, written in the PHP scripting language, that adds a specific set of features or services to the WordPress weblog, which can be seamlessly integrated with the weblog using access points and methods provided by the WordPress Plugin Application Program Interface (API).
Wishing that WordPress had some new or modified functionality? The first thing to do is to search various WordPress Plugin repositories and sources to see if someone has already created a WordPress Plugin that suits your needs. If not, this article will guide you through the process of creating your own WordPress Plugins.
To develop WP plugins, you must familiar with wordpress hooks and API functions.
You can start learning/exploring from any existing plugins. I had started with "Hello_Dolly" :)

How to know if a wordpress plugin is safe

There are thousands of plugins and themes available at wordpress.org and many other third parties. There is every possibility of bad plugins and themes being uploaded, which once uploaded could send info about the site to its owner. It could also send the information in the wp-config.php (A high security risk).
Please tell me how to protect wordpress sites from this other than by reading the code line by line. Also tell me if plugins and themes at wordpress.org are analyzed by the wordpress developers for threats like this before making it available to public.
Thank you.
Peace to All....
As with any code you run on your own server(s), WordPress plugins are caveat emptor.
That said, popular plugins have probably had a fair number of eyes on their code, making it unlikely that they're doing something shady. You probably don't need to go over them with a fine-tooth comb before installing them.
Lesser-known/used plugins, however, should probably be looked over before you install them on a site/server that you care about.
WordPress.org does not review every bit of code that goes into plugins - the only time they even do any review at all is when the plugin is initially submitted to the plugin directory, and that's cursory at best (mostly just to avoid spam). A plugin's code can change drastically after it's initially submitted.
Typically I will look at the feedback the plugin received on wordpress.org What kind of rating does it have? What comments/questions are asked in the 'what others are saying' section.
After making the decision to install the plugin, BACKUP YOUR DATA PRIOR TO THE ACTUAL INSTALLATION.
This is just good practice in any case, whether it's a wordpress core installation, plugin installation, or theme. If something breaks, you will have something to go back to.
Also making sure to keep frequent backups is a must. If you do get infected, you will want a snapshot.
There is a good article about the safety and security of themes that best plugins for wordpress put together. Also you can go some off of the rating given by the community straight from the wordpress plugin site. If you keep with plugins that have a 4-5 star rating and lots of downloads/ratings, you will most likely be ok. However, because this is an open source project, there is really not a 100% way to keep hackers and "bad people" from putting code in a what appears to be good theme/plugin that you are describing.
In this case if you have concern of a theme or plugin, I would always look over the code very carefully and make sure that it all looks good to you. Of course this is always time consuming and if you are not comfortable with code, this may not be an option. If you have questions about a certain set of plugins/themes, im sure if you post them here, there are many people that have used the plugin and maybe the theme before that can help you out.
From "Best Plugins for Wordpress"
1 TAC (Theme Authenticity Checker) Plugin
A very simple and straight forward plugin that will scan all files within your theme to >>check for any malicious or unwanted code.
2 Theme-Check Plugin
You may notice that a lot of free themes aren’t available directly from WordPress.org, >>the main reason for this is that most free themes don’t pass the tests that WordPress.org subjects them too. This nifty plugin will provide you with all the testing tools you will need to conduct the same tests that WordPress.org does. It’s also useful for theme developers who want to make sure their theme supports the latest standards.
3 Exploit Scanner Plugin
This plugin isn’t just for themes, it’s for your entire site, so it’s worth keeping once you’ve checked out the theme you’ve decided to use on your site. It scans all files, posts and comments on your site for any possible exploits or anything that looks suspicious, please note however that this plugin will not remove any files.

Categories