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

AMIMOTOにおけるWordPressプラグイン依存関係の解決方法

 AMIMOTOにおけるWordPressプラグイン依存関係の解決方法

ハッカーズチャンプルー2016 カンファレンスの部 LT資料

Hidetaka Okamoto

June 25, 2016
Tweet

More Decks by Hidetaka Okamoto

Other Decks in Technology

Transcript

  1. A M I M O T O ʹ ͓ ͚Δ

    Wo rd P re s s ϓ ϥ άΠ ϯ ґ ଘ ؔ ܎ ͷ ղ ܾ ํ ๏ ϋο Χ ʔζ ν ϟϯ ϓϧ ʔ 2 0 1 6 Χ ϯ ϑ Ν Ϩϯε ͷ ෦
  2. Ԭ ຊ ल ߴ • Digitalcube ΤϯδχΞ • WordBenchژ౎ϞσϨʔλ •

    Reactͱ͔AWS SDKͰJSͿΜ ·Θ͠ • Πϕϯτʹଠޑ࣋ͪࠐΉ΍ͭ
  3. A W S + Wo rd P re s s

    = > A M I M O T O A M I h t t p s : / / a m i m o t o - a m i . c o m /
  4. ਺ ଟ ͘ͷ ϓ ϥ άΠ ϯ Λ Ϧ Ϧ

    ʔε h t t p s : / / w w w. d i g i t a l c u b e . j p / a b o u t / c o m m u n i t y - c o n t r i b u t i o n /
  5. ϓ ϥ άΠ ϯ ͕ ͳ ͍ ৔ ߹ ɺ

    Π ϯε τ ʔϧ ը ໘ ΁
  6. ϝ χϡ ʔ ͕ ό ϥό ϥ • ϝχϡʔҐஔ΋ෆنଇ •

    ߲໨Λ୳͢ͷ͕खؒ • ͜Ε΋·ͱΊ͍ͨ
  7. ϝ χϡ ʔ Λ Ұ Օ ॴ ʹ ౷ Ұ

    • طଘͷϝχϡʔ͸࡟আ • ৽نʹϝχϡʔΛ࡞੒ • ભҠઌ͸֤ϓϥάΠϯ΁
  8. ݩ ͷ ϝ χϡ ʔ Λ ࡟ আ global $menu;

    foreach ( (array) $menu as $key => $array ) { $plugin = 'c3-admin-menu'; if ( array_search( $plugin, $array ) ) { unset( $menu[ $key ] ); break; } }
  9. ݩ ϓ ϥ άΠ ϯ ϑ Ν Πϧ Λ ϩ

    ʔ υ $plugin_file_path = path_join( ABSPATH , 'wp-content/plugins/ nephila-clavata/includes/class-NephilaClavata_Admin.php' ); require_once( $plugin_file_path ); $nephila_clavata_admin = NephilaClavata_Admin::get_instance(); add_submenu_page( self::PANEL_ROOT, __( 'Nephila clavata', self::$text_domain ), __( 'Amazon S3', self::$text_domain ), 'administrator', self::PANEL_S3, array( $nephila_clavata_admin, 'options_page' ) );
  10. ϝ χϡ ʔ Λ ৽ ن ࡞ ੒ $plugin_file_path =

    path_join( ABSPATH , 'wp-content/plugins/ nephila-clavata/includes/class-NephilaClavata_Admin.php' ); require_once( $plugin_file_path ); $nephila_clavata_admin = NephilaClavata_Admin::get_instance(); add_submenu_page( self::PANEL_ROOT, __( 'Nephila clavata', self::$text_domain ), __( 'Amazon S3', self::$text_domain ), 'administrator', self::PANEL_S3, array( $nephila_clavata_admin, 'options_page' ) );
  11. ݩ ϓ ϥ άΠ ϯ ͷ ؅ ཧ ը ໘

    ϖʔ δ Λ ભ Ҡ ઌ ʹ ࢦ ఆ $plugin_file_path = path_join( ABSPATH , 'wp-content/plugins/ nephila-clavata/includes/class-NephilaClavata_Admin.php' ); require_once( $plugin_file_path ); $nephila_clavata_admin = NephilaClavata_Admin::get_instance(); add_submenu_page( self::PANEL_ROOT, __( 'Nephila clavata', self::$text_domain ), __( 'Amazon S3', self::$text_domain ), 'administrator', self::PANEL_S3, array( $nephila_clavata_admin, 'options_page' ) );
  12. ໋ ໊ ن ଇ ͳ Ͳ ͕ ແ ͍ ͱ

    ɺ α ϙʔ τ ͕ ࣍ ୈ ʹ ໘ ౗ ʹ
  13. ʮ Կ ʹ ࢖ ͑Δ ͷ ͔ ʯ ͕ Θ

    ͔ Δ ໊ લ ʹ ͠ Α ͏ γ Ϧ ʔζ Խ ͢ Δ ͳ Β ໋ ໊ ن ଇ Λ ͭ ͚Α ͏
  14. Wo rd P re s s ͸ ؤ ு Ε

    ͹ ͳ Μ ͱ ͔ ͳ Δ ʢ ଞ ͸ อ ূ ͠ ͳ ͍ ʣ
  15. h t t p : / / b i t

    . l y / 2 8 W 3 i 3 m Thanks!