brew install git-ftp
git config git-ftp.dev.url ftp://:/
| <?php | |
| /** | |
| * | |
| * Transients API settings | |
| * | |
| */ | |
| namespace THEME_NAME; | |
| class Transients |
| import Vue from 'vue' | |
| import { DatePicker } from 'element-ui' | |
| import langJa from 'element-ui/lib/locale/lang/ja' | |
| import langEn from 'element-ui/lib/locale/lang/en' | |
| import locale from 'element-ui/lib/locale' | |
| import 'element-ui/lib/theme-chalk/index.css' | |
| import moment from 'moment' | |
| const pageLang = document.querySelector('html').getAttribute('lang') | |
| const isJa = pageLang === 'ja' |
| $(() => { | |
| $(window).on('resize', onResize).trigger('resize') | |
| }) | |
| function onResize() { | |
| const playerHeight = (9 / 16) * window.innerWidth | |
| $player.toggleClass('is-vertical', window.innerHeight > playerHeight) | |
| } |
| <?php | |
| /** | |
| * allowed blocks type | |
| * Block List: https://en.support.wordpress.com/wordpress-editor/blocks/ | |
| * | |
| * @param bool|array $allowed_block_types Array of block type slugs, or | |
| * @param object The post resource data. | |
| */ | |
| function filter_allowed_block_types( $allowed_block_types, $post ) { | |
| // echo '<pre>'; |
| /* | |
| * icon list: https://material.io/tools/icons/?style=baseline | |
| * codepoints: https://github.com/google/material-design-icons/blob/master/iconfont/codepoints | |
| */ | |
| .icon { | |
| &:before { | |
| content: '\e315'; | |
| font-family: 'Material Icons'; | |
| } | |
| } |
| br { | |
| content: ""; | |
| margin-left: 5px; | |
| } |
list users
less /etc/group
add group user
gpasswd -a hogehoge apache
| // Set the value of the custom variable '--vh' to the root of the document | |
| document.documentElement.style.setProperty( | |
| '--vh', | |
| `${window.innerHeight * 0.01}px` | |
| ) |
| <?php | |
| // all | |
| add_filter( 'use_block_editor_for_post', '__return_false' ); | |
| // Specific post types | |
| add_filter( 'use_block_editor_for_post_type', 'disable_block_editor', 10, 2 ); | |
| function disable_block_editor( $use_block_editor, $post_type ) { | |
| if ( $post_type === 'page' ) { | |
| return false; | |
| } |