Slide 1

Slide 1 text

WordPress ͷϓϥάΠϯ࡞ͬͨΓί ΞίϯτϦϏϡʔλʹͳͬͨ࿩ɻͦ͠ ͯɺͦͷָ͠͞ͱҙٛɻ Toro_Unit / 2016.07.10 @ WordCamp Kansai 2016 1

Slide 2

Slide 2 text

whoami ͜͡͠ΐ͏͔͍ 2

Slide 3

Slide 3 text

Profile Toro_Unit / ઎෦ ߛ (͏Β΂ ͻΖ͠) Frontend Engineer / Plugin Developer / Web Designer Github: @torounit Twitter: @Toro_Unit Facebook: fb.me/torounit Blog: https://torounit.com 3

Slide 4

Slide 4 text

Profile • ෱ౡݝ܊ࢁࢢੜ·Εɻ܈അݝଠాࢢ ҭͪɻ௕໺ݝদຊࢢ1̕೥໨ɻ • ʹ͡Ύ͏ͳͳ͍͞ɻ • ;ΓʔΒΜ͢ʹͳΓ·ͨ͠ɻ 1 Wikimedia Commons/File:File: 130608MatsumotoCastleMatsumotoNaganoprefJapan02bs4.jpg Author: 663highland.License:CC2.5 4

Slide 5

Slide 5 text

WordPressͱͷؔΘΓ 5

Slide 6

Slide 6 text

Plugins • Custom Post Type Permalinks ( Active Install 60,000+!!! ) • Simple Post Type Permalinks • Powerful Posts Per Page • Hello Kushimoto • etc... 6

Slide 7

Slide 7 text

Other Project • WordPress 4.3 ~ 4.5 Core Contributor • WP-CLI (v0.20.2) / VCCW Community • WordBench ௕໺ (࠷ۙ দຊൡɾ൧ాൡͱ͔Ͱ͖·ͨ͠) • WordCamp / WordBash / WordWine ... 7

Slide 8

Slide 8 text

ΞδΣϯμ 8

Slide 9

Slide 9 text

1. ϓϥάΠϯΛ࡞ͬͯެ։ͯ͠Έͨ࿩ɻ 2. ύονΛૹͬͯΈͨ࿩ɻ 1. ϓϥάΠϯʹύονΛૹͬͯΈͨɻ 2. ຊମʹ΋ύονΛૹͬͯΈͨɻ 3. ͍͞͝ʹ 9

Slide 10

Slide 10 text

1. ϓϥάΠϯΛ࡞ͬͯެ։ͯ͠Έͨ࿩ 10

Slide 11

Slide 11 text

1.ϓϥάΠϯ։ൃΛ࢝ΊͨܦҢ 11

Slide 12

Slide 12 text

2011೥ 5years ago 12

Slide 13

Slide 13 text

• ࣾ಺ͰWordPressΛ৮Γͩͯ͠1೥͙Β͍ɻ • ࣾ಺ʹΤϯδχΞ΋ډΒͣɺ஍ํͳͷͰษڧձͳͲ΋͋·Γ ແ͍ɻͱΓ͋͑ͣɺެࣜσΟϨΫτϦͷςʔϚ΍ϓϥάΠϯ Λݟ࢛ͯۤീۤɻ • ΦϨΦϨϓϥάΠϯΛ͍͔ͭ͘࡞ͬͯͨΓɻ 13

Slide 14

Slide 14 text

14

Slide 15

Slide 15 text

WordPress ͷΠϕϯτʂ ࢀՃͯ͠ΈΑ͏ʂ 15

Slide 16

Slide 16 text

WordCamp Tokyo 2011Ͱ͠Ό΂ͬͯདྷ·ͨ͠ɻ | Firegoby 16

Slide 17

Slide 17 text

ʮΞοϓσʔτ͕؆୯ʹͳΔΑʂʯ • ʮ؅ཧը໘͔ΒΞοϓσʔτͰ͖ΔΑ͏ʹͳΔΑʂʯ ʮৄ͍͠ਓ͔ΒϑΟʔυόοΫ΋Β͑ΔΑʂʯ • ʮPHP͸શੈքڞ௨ʂඇӳޠݍͷਓ΋ଟ͍͔Βେৎ෉ʂʯ 17

Slide 18

Slide 18 text

๻ͷײ૝ ʮͳΜ͔ࢥͬͯͨΑΓؾܰͦ͏ͩ͠ɺϑΟʔυόοΫͱ͔΋Β ͑ͨΒָͩͳʔɻ΄Μͱ͔ͳ͊ŋŋŋ??? (൒৴൒ٙ)ʯ ·͊ὃ͞Εͨͱࢥͬͯ΍ͬͯΈΑ͏ʂ 18

Slide 19

Slide 19 text

2011/12/05. ͱ͍͏Θ͚Ͱɺެ։ͯ͠Έͨɻ Total Downloads: 260,358 (2016/7/10ݱࡏ) 19

Slide 20

Slide 20 text

2011/12/08. ૣ଎ϚαΧϦ͕ඈΜͰདྷͨɻ ҙ༁Ͱ͢ɻޠฐͳͲΛؚΜͰ͓Γ·͢ɻ • σόοάϞʔυͰͷݕূ͠ΖʂNotice ͰͯΔ΍Μ͚ʂ • Τεέʔϓ͠ΖʂηΩϡϦςΟΨόΨόʂ • etc... 20

Slide 21

Slide 21 text

ͼͼΔʂ 21

Slide 22

Slide 22 text

Ͱ΋ɺ͋Γ͕͍ͨʂ͏Ε͍͠ʂ 22

Slide 23

Slide 23 text

པΜͰ΋͍ͳ͍ͷʹݕূ΍ͬͯ͘ΕΔʂ ίʔυ΋ಡΜͰࢦఠͯ͘͠ΕΔʂ ϓϧϦΫΤετͱ͔ύονͱ͔͘ΕΔʂউखʹ௚ͯ͘͠ΕΔʂ 23

Slide 24

Slide 24 text

ଞͷਓ͔Β΋ͨ͘͞ΜͷϑΟʔυόο ΫΛ΋Β͍·ͨ͠ɻ 24

Slide 25

Slide 25 text

࠷ۙདྷͨ issue ҙ༁: wp_get_post_terms ࢖͏ͱσʔλ͕Ωϟογϡ͞Εͳ͍͔Βget_the_terms ͷํ͕ྑ͍Αʂ 25

Slide 26

Slide 26 text

ʮੈքͱަྲྀʯ͔֬ʹग़དྷͨ! • ݴ༿Ͱ͸΍ΓͱΓͰ͖ͳͯ͘΋ɺίʔυΛհͨ͠΍ΓͱΓ͕ ग़དྷΔͷ͸໘ന͍ʂԕํͷਓͱ͔ɺւ֎ͷਓͱ͔ɻίʔυ͔ Β࢝·ͬͯ஥ྑ͘ͳͬͨਓ΋ɻ 26

Slide 27

Slide 27 text

ϑΟʔυόοΫ͸ຊ౰ʹษڧʹͳΔɻ • ਖ਼௚ɺWordPress ͷ͢΂ͯʹৄ͍͠Θ͚͡Όͳ͍ɻ͚ͩͲɺ ୭͔͕ڭ͑ͯ͘ΕΔɻ஌Βͳ͔ͬͨػೳɾڍಈͱ͔ɻ • ϓϥάΠϯͷςετࣗಈԽͱ͔΋ڭ͑ͯ΋ΒͬͨΓɻ • ϑΟʔυόοΫΛ໯͍΍͘͢ɺ֦ுɾमਖ਼͢ΔͨΊʹྑ͍ί ʔυΛॻ͜͏ͱ͍͏ҙ͕ࣝ෇͍ͨɻਓͷςετΛಡΜͩΓ΋ɻ • ؾ͕͚ͭ͹͔ͳΓͷεΩϧΞοϓɻ 27

Slide 28

Slide 28 text

ίʔυΛެ։͢Δ͜ͱ͸ɺϝϦοτ͋Γ·͢Α!! 28

Slide 29

Slide 29 text

Add Your Plugin! 29

Slide 30

Slide 30 text

2. ύονΛૹͬͯΈͨ࿩ɻ 30

Slide 31

Slide 31 text

2-1. ϓϥάΠϯʹύονΛૹͬͯΈͨ 31

Slide 32

Slide 32 text

ʮެࣜσΟϨΫτϦʹ্͛ΔͱΞοϓσʔτ͸؆୯!ʯ ͱઌ΄Ͳݴ͍·͚ͨ͠Ͳɻ 32

Slide 33

Slide 33 text

ͦΕɺࣗ෼ͷϓϥάΠϯ͚ͩͰྑ͍ͷʁ ( ύʔϚϦϯΫͷϓϥάΠϯ͚ͩ͡ΌαΠτ͸࡞Εͳ͍ɻ ) 33

Slide 34

Slide 34 text

ଞͷਓ͕࡞ͬͨϓϥάΠϯʹόά͕͋ͬͨΒ? ଍Γͳ͍ػೳ͕͋ͬͨΒ? 34

Slide 35

Slide 35 text

मਖ਼ΛૹΓ͚ͭΕ͹͍͍ΑͶ!!! ͦΕ͕൓ө͞ΕͨΒָͩΑͶ!!! 35

Slide 36

Slide 36 text

ͱ͍͏Θ͚ͰύονΛૹͬͯΈͨࣄྫɻ 36

Slide 37

Slide 37 text

WordPress Ͱ ଟݴޠαΠτΛ࣮ݱ͢ΔϓϥάΠϯ Bogo ʹͭ ͍ͯͷ૬ஊ͕ϑΥʔϥϜʹ౤ߘ͞Ε͍ͯͨɻ Bogo ͷ࡞ऀ͸ Contact Form 7 Ͱ͓ͳ͡Έͷࡾ޷͞Μɻ ΧελϜ౤ߘλΠϓͰɺݴޠΛ·͍ͨͰಉ͡εϥοάͷ౤ߘΛ ࡞Εͳ͍ͱ͍͏૬ஊɻ ϑΥʔϥϜ » BogoɿݴޠؒͰಉ͡ύʔϚϦϯΫΛ࢖͏ʹ͸ʁ — WordPress 37

Slide 38

Slide 38 text

։ൃதͷҊ݅Ͱ Bogo Λ࢖͍ͬͯͨͷͰɺݕূͯ͠Έͨɻ ͦͷ݁Ռɺhierarchical => true ͳΧελϜ౤ߘλΠϓʹ͓ ͍ͯɺͦͷ໰୊͕ൃੜ͢Δ͜ͱ͕ൃ֮ɻ 38

Slide 39

Slide 39 text

• ࢓༷͕૿͑ͨ৔߹ʹɺಉ͡໰୊ʹͿ͔ͭΔ͔΋ɻɻɻɻ (ӅΕͨ࢓༷ͳΜͯྑ͋͘Δ࿩) • όάݟ͚ͭͪΌ͔ͬͨΒؾʹͳΔɻ 39

Slide 40

Slide 40 text

ͱ͍͏Θ͚Ͱɺͦͷ໰୊Λमਖ਼ɻίʔυΛϑΥʔϥϜʹషͬͯ Έͨɻ 40

Slide 41

Slide 41 text

ʮToro_Unit ͞Μɺ͢͹Β͍͠ಎ࡯ɺ͋Γ͕ͱ͏͍͟͝·͢ɻ͍ ͍ͨͩͨύονΛ࣍ͷϦϦʔεͰಋೖ͠·͢ɻௐࠪʹ࣌ؒΛׂ ͍͍͖ͯͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻʯ 41

Slide 42

Slide 42 text

ΉͪΌͪ͘Ό͏Ε͍͠ʂ 42

Slide 43

Slide 43 text

Ͱ΋ɺଞʹ΋ྑ͍͜ͱɻ 43

Slide 44

Slide 44 text

͜ͷ໰୊͕मਖ਼͞Εͨ͜ͱͰɺ޾ͤʹͳͬͨਓɻ • Ϛʔδ͞Εͯخ͔ͬͨࣗ͠෼ɻ • ࡞ऀͷࡾ޷͞Μɻʢཁ֬ೝʣ • ͜ͷ໰୊ʹࠔ͍ͬͯͨϑΥʔϥϜ౤ߘऀͷํɻ ͦͯ͠ɻ 44

Slide 45

Slide 45 text

Bogo Λ࢖ͬͯΔਓɺ͜Ε͔Β࢖͏ਓ! • ϑΟʔυόοΫͷ͓͔͛Ͱউखʹόά͕௚ͬͯΔʂ • ͦ΋ͦ΋͜ͷ໰୊ͷଘࡏ͢Β஌ΒͣʹࡁΉɻ 45

Slide 46

Slide 46 text

ͦ΋ͦ΋ɺΦʔϓϯιʔε͔ͩΒɺͰ͖ͨ͜ͱɻ ͜Εͬͯ͘͢͝ͳ͍ʁ 46

Slide 47

Slide 47 text

Open Source Power! 47

Slide 48

Slide 48 text

2-2. ίΞʹύονΛૹͬͯΈͨɻ 48

Slide 49

Slide 49 text

• ͋Δ೔ɺget_post_type_labels Λݺͼग़͢ͱɺ get_post_type_object ͷ໭Γ஋͕࿈૝഑ྻʹมΘͬͯ͠· ͏ͱ͍͏όάʹͿͪ౰ͨΔɻ(ຊ౰͸Object) • ΦϨΦϨؔ਺Λ࡞͍ͬͯ྇Ͱ΋ྑ͍͚Ͳ͔ͬͨΔ͍ͳŋŋŋɻ 49

Slide 50

Slide 50 text

ίΞͷόά͕௚Ε͹ɺָͩΑͶʁ 50

Slide 51

Slide 51 text

• ίΞͷτϥοΫΛௐ΂ͨͱ͜Ζɺ2ϲ݄લʹใࠂ͸͞Ε͍ͯ ͕ͨະରԠͩͬͨɻϚχΞοΫ͍͔ͩͬͨͤɺίϝϯτͳͲ ΋ಛʹ͍͓ͭͯΒͣɻ #33023 (_get_custom_object_labels should not change data type to Array from Object.) – WordPress Trac ݪҼ΋Θ͔ͬͯΔ͠ɺ͜ΕύονૹΕ͹ྑ͍Μ͡Όແ͍͔ʁ 51

Slide 52

Slide 52 text

ͱ͍͏Θ͚ͰɺύονΛૹͬͨɻ 52

Slide 53

Slide 53 text

ӳޠͰઆ໌͢Δͷ͕େมͩͬͨͷͰɺςετίʔυ΋͍ͭͰʹॻ͍ͨɻ 53

Slide 54

Slide 54 text

Ϛʔδ͞Εͨʂ 54

Slide 55

Slide 55 text

ΊͬͪΌخ͍͠!! WordPress ʹ໊લ͕ࡌͬͯࣗຫͰ͖Δ! 55

Slide 56

Slide 56 text

Ͱ΋΄͔ʹ΋(ҎԼུ 56

Slide 57

Slide 57 text

Open Source Power! 57

Slide 58

Slide 58 text

3.͍͞͝ʹ 58

Slide 59

Slide 59 text

ϓϥάΠϯΛ࡞͍ͬͯΔཧ༝ɻ ࣗ෼ͷϓϥάΠϯ͸ຊ౰ʹͨ͘͞ΜͷαΠτͰಈ͍͍ͯ·͢ ͕ŋŋŋŋ • ࣗ෼ͷཉ͔ͬͨ͠ػೳ͕ແ͔͔ͬͨΒ࡞͚ͬͨͩʂ • Ξοϓσʔτָ͕ͩͱݴΘΕͨ͠ɺϑΟʔυόοΫ͕͋Δͱ ࣗ෼͕࢖͏ͱ͖ʹָͩͳͱࢥ͚ͬͨͩʂ 59

Slide 60

Slide 60 text

ύονΛૹͬͨཧ༝ɻ • ୯ʹࣗ෼͕ࠔͬͨΓ͔ͨ͠ΒɺύονΛૹ͚ͬͨͩɻ • ύον΋ຊମʹϚʔδ͞Εͨํָ͕ͩͬͨ͠ɺใࠂ͢Ε͹࡞ ऀͷํ΍ଞͷਓʹ΋ݟͯɺόάΛݟ͚ͭͯ΋Β͑Δ͔ ΋ɾɾɾΈ͍ͨͳͦΜͳग़དྷ৺ɻ 60

Slide 61

Slide 61 text

ͦΜͳ͍ܰؾ͕࣋ͪɺ݁Ռతʹ͍ΖΜ ͳਓͷॿ͚ʹͳ͍ͬͯΔ!!! 61

Slide 62

Slide 62 text

ͦͯ͠ɺ஌Βͳ͍ؒʹࣗ෼΋ͦͷԸܙ Λଘ෼ʹड͚͍ͯΔ!!! 62

Slide 63

Slide 63 text

• ΦϨΦϨϑΥʔΫ • ΦϨΦϨύον • ΦϨΦϨϓϥάΠϯ ͋ͳͨͷϨϙδτϦʹ຾͍ͬͯ·ͤΜ͔ʁ 63

Slide 64

Slide 64 text

Let's Contribute! 64

Slide 65

Slide 65 text

ίΞͷڍಈʹʮ͋Εͬʯŋŋŋͬͯ ࢥͬͨ͜ͱ͸͋Γ·ͤΜ͔ʁ 65

Slide 66

Slide 66 text

Let's Contribute! 66

Slide 67

Slide 67 text

Good First Bugs ॳΊͯͷਓʹΦεεϝͷ؆୯ͳόάɻ ίΞ΁ͷύονΛૹͬͨΓ͢Δ࿅शʹͲ͏Ͱ͔͢ʁ 67

Slide 68

Slide 68 text

Let's Contribute! 68

Slide 69

Slide 69 text

Let's Open Source! 69

Slide 70

Slide 70 text

Thanks! Github: @torounit Twitter: @Toro_Unit Facebook: fb.me/torounit Blog: https://torounit.com 70