boradashvin
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Need help for WordPress coding standardsOk, Thank you!
Also, one thing we are not able to find prefixes below points using WCS. Is it possible to use the custom rule?to find prefixes?
## Generic function/class/define/namespace/option namesAll plugins must have unique function names, namespaces, defines, class and option names. This prevents your plugin from conflicting with other plugins or themes. We need you to update your plugin to use more unique and distinct names.
A good way to do this is with a prefix. For example, if your plugin is called “Easy Custom Post Types” then you could use names like these:
- function ecpt_save_post()
- class ECPT_Admin{}
- namespace ECPT;
- update_option( ‘ecpt_settings’, $settings );
- define( ‘ECPT_LICENSE’, true );
- global $ecpt_options;
Forum: Developing with WordPress
In reply to: Need help for WordPress coding standardsWe are Using WCS but no error found in this.
We got feedback from the WordPress plugin team
We got message from wordpress team
## Generic function/class/define/namespace/option names
Remember: Good prefix names are unique and distinct to your plugin. This will help you and the next person in debugging, as well as prevent conflicts.Analysis result:
# This plugin is using the prefix “woocommerce” for 43 element(s).## Undocumented use of a 3rd Party or external service
We require plugins that reach out to other services to disclose this, in clear and plain language, so users are aware of where data is being sent. This allows them to ensure that any legal issues with data transmissions are covered. This is true even if you are the 3rd party service.
inc/classes/functions.php:1036 $sharing_url = ‘https://api.whatsapp.com/send?text=*‘. wp_strip_all_tags($args[‘text’]) .’%0a’. $args[‘url’];