WordPress coding standards are loosely based on the Pear Coding Standards
The Drupal open source project also follows similar standards and has published a guide to configuring various editors and IDEs which includes code for a Emacs Drupal mode which can be modified slightly for WordPress.
Related Posts:
- Nonce in settings API with tabbed navigation
- Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
- Can I use namespaces in my plugin?
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- Get a path to a different plugin
- How to check uniqueness of plugin prefix?
- Plugin API for easy admin list table generation, handling & exporting of MySQL tables?
- Change default admin page for specific role(s)
- Check for dependent plugin and if false dont activate plugin
- How to check username/password without signing in the user
- Log in from one wordpress website to another wordpress website
- What’s the earliest point I can get the queried object ID?
- Custom admin_notices Messages Ignored During Redirects
- Add content to widget title in admin area within the widget?
- Is it save to require plugin.php early to be able to use get_plugin_data() earlier?
- When is it appropriate to put functions on page template vs. functions.php?
- Unit Testing a Plugin functionality with cron
- How to enable users to down-vote in this simple voting counter (that uses the post meta)?
- Best way for plugin to accept POSTs?
- What are the really difference writing WordPress 3.x widget plugins?
- Error “Call to a member function switch_to_locale() on null” during insert_with_markers
- multiple functions with same filter
- Calling plugins API within a theme
- How do you output enqueued scripts to an admin page?
- Woocommerce – Hide a Column in Cart Table
- Does WordPress’s HTTP API use any caching?
- query users by role
- call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two members
- How to Create Custom HTML Tag on Editor in `Text(HTML)` mode
- null callback in add_settings_section
- Will setcookie work if there is a cache plugin installed?
- Adding settings link to plugin doesn’t work
- Including the necessary functions for a custom ajax registration form
- Why doesn’t my simple the_title filter get applied?
- WordPress clean internationalization for menus?
- Dashboard – get status and position of metaboxes and pass them to ajax method
- Is it possible to install a theme via a plugin?
- JSX in WordPress Plugin Development
- W3 Total Cache JS and css Minify folder are empty
- Form doesnt save to database
- Wp_list_table search box not working for custom value from database
- How to add user details to different tables immediately after user registration
- Including comments meta box on a plugin page
- How to create custom settings page for custom plugin
- Why wp_die() doesn’t work with wp_redirect but exit() works
- Internationalizing Plugin
- Update File Once Every 30 Days
- Taxonomies within plugin invalid
- Make Database query only when option is updated
- Looking for a better way to initiate cron job
- shortcode executed in the page editor
- Plugin header: WP and PHP version control uses wp_die(), can I change that?
- per blog metadata for plugin
- Completely isolate a plugin view so it doesn’t load the theme
- Does is_admin() really provide a plugin performance improvement?
- Custom Post Type Object – Undefined Variables
- How to translate wordpress backend to another language
- How does “Your comment is awaiting moderation” work?
- How to localize data array in plugin’s option page
- rewrite_rules problem
- Dynamic page generation upon purchase of a product
- Custom post type change permalink query
- Upload product image from frontside for administrator only
- Allowing duplicating users with same user_login and user_email
- Why does theme’s reset CSS have higher precedence of plugin’s CSS?
- Updating the_post content is only working with Twenty Twenty theme
- Redirect WooCommerce checkout to cart
- Scripts/styles not loading on cloned WP Site when logged in
- Initializing rest endpoint issue
- WordPress plugin how to run function when button is clicked
- Save in my custom admin page and redirect to the saved object
- How to display archive by selecting year and then selecting month
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- Undefined notice on unset field
- Theming Custom Plugin Page
- From my Plugin Settings Page use check boxes to load specific css files (e.g. Bootstrap / Foundation)
- Script work on non logged in user but not work for logged in user?
- admin page passing $_POST variables to itself
- Can wp_schedule_single_event be used to run background proccess?
- Is it possible to make WordPress as a RESTful app?
- Get user logged in status from within a plugin. $current_user not defined
- Widget plugin and input file
- How to inject html to every page with a plugin?
- Custom plugin not appearing
- Safe XML response from wordpress plugin
- Gutenberg: – Call a function after Server Side Component is rendered
- How are themes and plugins localized using the gettext GNU framework?
- Theme, Plugin or Both?
- Accept only PDF file for upload
- WordPress upload path decalration
- Add a custom image source
- filter on get_posts efficiently
- How to get custom user meta by id in custom Gutenberg block
- How to prepend a header section to all pages related to my WordPress Plugin
- How to access Elementor-navigation-elements via jQuery
- Hook a search form anywhere on the site, using a custom plugin
- Plugin forms overwrite each other’s options
- ACF – programmatically install and activate in pipeline to automate testing for custom plugin development?
- How can I include React useState in a custom gutenberg block plugin?
- Problem with Owl Carousel, infinite loop [closed]