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

WP ZoomUP 40 - Save JP Loss

WP ZoomUP 40 - Save JP Loss

WP ZoomUP #40 WordPressで社会貢献 〜発案から実装まで、舞台裏を見てみよう〜での発表スライドです

mt8.biz

May 08, 2020
Tweet

More Decks by mt8.biz

Other Decks in Technology

Transcript

  1. Admin Menu Editor Announce from the Dashboard Colorlib Login Customizer

    Command Palette Crazy Bone (狂骨) Custom Post Type Permalinks Custom Post Type UI Disable Comments Duplicate Post Enable Media Replace Insert Headers and Footers Intuitive Custom Post Order MW WP Form MW WP Form Data 2 User MW WP Form Generator Native Lazyload Nav Menu Roles Nested Pages Official Facebook Pixel Passwordless Login Peter's Collaboration E-mails Peter's Login Redirect Public Post Preview Regenerate Thumbnails Save JP Loss Save JP Loss Plugin(Imamura) Search Meter Show Current Template Simple Custom CSS and JS Site Kit by Google User Role Editor User Switching WP Email Users WP File Manager WP Mail SMTP WP Multibyte Patch WP Remove Dashboard Extra Widgets WP SVG images XO Featured Image Tools 41 Plugins
  2. ブロックテンプレート $item = get_post_type_object( 'item' ); $item->template_lock = 'all'; $item->template

    = [ [ 'core/group', [ 'className' => 'item-block-group' ], [ [ 'core/image', [ 'className' => 'item-img','align' => 'full' ] ], [ 'core/heading', [ 'className' => 'item-h2','level' => '2', 'content' => '商品名' ] ], [ 'core/paragraph', [ 'className' => 'item-p', 'placeholder' => '新鮮たまねぎ 5kg(クリックで入力) ' ] ], [[ 'core/heading', [ 'className' => 'item-h2','level' => '2', 'content' => '商品説明' ] ], [ 'core/paragraph', [ 'className' => 'item-p', 'placeholder' => '無農薬にこだわって大切に栽培しています。(クリックで入力) '] ], ] ]; ]; Before Gutenberg – ブロックテンプレートによる入稿制限 https://capitalp.jp/2018/12/13/block-template-for-cpt/
  3. <?php /** * Plugin Name: MW WP Form Data 2

    Post * Description: MW WP Formから送信されたデータを投稿に複製する * Author: mt8 * Version: 1.0 * License: GPL2 * MW WP Form Data 2 Post is free software: you can redistribute it and/or modify */ MW WP Formから送信されたデータを投稿に複製する https://bit.ly/mw2post