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

はじめてのプラグインのつくりかた

 はじめてのプラグインのつくりかた

WordBench 長野 vol.14 WordPress 勉強会 の登壇資料です。

Toro_Unit (Hiroshi Urabe)

December 02, 2017
Tweet

More Decks by Toro_Unit (Hiroshi Urabe)

Other Decks in Technology

Transcript

  1. Toro_Unit ઎෦ ߛ (͏Β΂ ͻΖ͠) ϑϦʔϥϯε Frontend Engineer / Web

    Designer Plugin and Theme Developer Github: @torounit Twitter: @Toro_Unit Facebook: fb.me/torounit Blog: https://torounit.com 3
  2. Plugins. • Custom Post Type Permalinks • Active installations: 90,000+

    • Downloads: 450,000 + • Simple Post Type Permalinks • Powerful Posts Per Page (PPPP) • Responsive Slide • and more... 4
  3. Contribution • WordBench ௕໺ ϞσϨʔλʔ • WordCamp Kyoto 2017 /

    Kansai 2016 / Tokyo 2016 • WordCamp Tokyo 2017 Speaker • WordBench.org • VCCW Team • etc... 6
  4. 2.PHPϑΝΠϧͷઌ಄ʹίϝϯτΛهड़ <?php /* Plugin Name: ௒͍͢͝ϓϥάΠϯ Plugin URI: https://example.org Description:

    ͍ͧ͢͝ʔ Author: Toro_Unit Version: 1.0.0 Author URI: https://torounit.com/ License: GPL2 or Later. */ ࠷௿ݶ Plugin Name ͕͋Ε͹OK. 12
  5. 13

  6. 21

  7. 23

  8. function sugoi_shortcode( $atts ) { $param = shortcode_atts( array( 'count'

    => 1, ), $atts ); return str_repeat( '͍͢͝', $param['count'] ); } add_shortcode( 'sugoi', 'sugoi_shortcode' ); 27
  9. 28

  10. 29

  11. ଞʹ΋༷ʑͳAPI WordPress API - WordPress Codex ೔ຊޠ൛ μογϡϘʔυ΢ΟδΣοτ API/σʔλϕʔε API/HTTP

    API/ ϑΝΠϧϔομʔ API/ϑΝΠϧγεςϜAPI/ϝλσʔλ API/ Options API/ϓϥάΠϯ API/ΫΠοΫλάAPI/Rewrite API/ Settings API/γϣʔτίʔυ API/Theme Modification API/ Theme Customization API/Transients API/WordPress ΢Ο δΣοτ API 31