Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What is the Responsibility of Plugin Developers?

takayukister
September 20, 2016

What is the Responsibility of Plugin Developers?

At WordCamp Singapore and Tokyo 2016. As a WordPress plugin developer, I talked about my opinion on the responsibility of plugin developers.

takayukister

September 20, 2016
Tweet

More Decks by takayukister

Other Decks in Programming

Transcript

  1. Translation Contributor Support Team Support Contributor Core Contributor WordPress.tv Contributor

    WordCamp Speaker Community Team Translation Editor Plugin Developer
  2. I have 10 years experience in plugin development. Contact Form

    7 and Bogo are my most favorite plugins.
  3. form action="http://example.com/donut" metho p> <input type="radio" name="flavor" id="choc <label for="choc">Chocolate</label><br/>

    <input type="radio" name="flavor" id="crea <label for="cream">Cream Filled</label>< <input type="radio" name="flavor" id="hone <label for="honey">Honey Glazed</label>< <input type="submit" value="Purchase Donut </p> </form> Label Correctly.
  4. form action="htt p> <input type="radio" name="flavor" id="choc <label for="choc">Chocolate</label><br/> <input

    type="radio" name="flavor" id="crea <label for="cream">Cream Filled</label>< <input type="radio" name="flavor" id="hone <label for="honey">Honey Glazed</label>< <input type="submit" value="Purchase Donut </p> </form> If your form isn't correctly labeled, screen reader users have no idea what to input into the fields.
  5. The WordPress Accessibility Team announced that all new or updated

    code released into WordPress core must conform with the WCAG 2.0 guidelines.
  6. __( "You are not allowed to upload files of this

    type.", 'contact-form-7' ) Make Text Translatable with __() Function.
  7. __( $text, $domain ) _e( $text, $domain ) _x( $text,

    $context, $domain ) _ex( $text, $context, $domain ) _n( $single, $plural, $number, $d _nx( $single, $plural, $number, $ You can also use variant functions.
  8. If you set these properties in your plugin's stylesheet, you

    may need to change the 'left' to 'right' in RTL languages: • text-align: left • margin-left: • padding-left: • border-left: • left:
  9. If you set these properties in your plugin's stylesheet, you

    may need to change the 'left' to 'right' in RTL languages: • text-align: right • margin-right: • padding-right: • border-right: • right:
  10. WordPress function is_rtl() tells if the site language is RTL.

    if ( is_rtl() ) { wp_enqueue_style( 'style-rtl', '/css/style-rtl.css' ); } Make an additional stylesheet for RTL and load it when the site language is RTL.
  11. We looked at two aspects today but of course these

    are not the only things we need to learn. Accessibility Localization &
  12. These are not about cool programming techniques, but it doesn't

    mean it's not important for developers. ACTUALLY, IT’S REALLY IMPORTANT!
  13. The Responsibility of Plugin Developers Is to Keep WordPress Accessible

    for Everyone. This is what I keep in mind when creating a plugin.