This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_change_query( $query ) { | |
// 管理画面では何もしない | |
if ( is_admin() || ! $query->is_main_query() ) { | |
return; | |
} | |
// カテゴリーページでランダムにする | |
if ( $query->is_category() ) { | |
$query->set( 'orderby', 'rand' ); | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'veu_widget_taxlist_args', 'my_veu_widget_taxlist_args' ); | |
function my_veu_widget_taxlist_args( $tax_args ) { | |
$tax_args['show_count'] = true; | |
return $tax_args; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'lightning_next_prev_options', 'my_lightning_next_prev_options_custom' ); | |
function my_lightning_next_prev_options_custom( $options ) { | |
$options['display_image'] = false; | |
return $options; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_add_new_before_post_title( $title ) { | |
// 今日の日付 | |
$today = date_i18n( 'U' ); | |
// 投稿の日付 | |
$entry_date = get_the_time( 'U' ); | |
// 経過日数 | |
$past_day = date( 'U', ( $today - $entry_date ) ) / 86400; | |
// Newを表示する日数 | |
$display_day = 7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////// | |
// 金額の上限〜加減のセパレーターを書き換える | |
////////////////////////////////////////////// | |
function my_vgjpm_salary_separater() { | |
return 'から'; | |
} | |
add_filter( 'vgjpm_salary_separater', 'my_vgjpm_salary_separater' ); | |
////////////////////////////////////////////// | |
// 表のHTMLマークアップを改変する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo __FILE__; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:vk-blocks/spacer {"pc":40,"tablet":30,"mobile":20} --> | |
<div class="vk_spacer"><div class="vk_spacer-display-pc" style="height:40px"></div><div class="vk_spacer-display-tablet" style="height:30px"></div><div class="vk_spacer-display-mobile" style="height:20px"></div></div> | |
<!-- /wp:vk-blocks/spacer --> | |
<!-- wp:vk-blocks/outer {"bgColor":"#000000","bgImage":"https://www.vektor-inc.co.jp/wp-content/uploads/2015/08/entrepreneur-1340649_640.jpg","padding_left_and_right":"1","padding_top_and_bottom":"0","opacity":0.9,"borderRadius":4} --> | |
<div class="vk_outer vk_outer-width-normal vk_outer-paddingLR-use vk_outer-paddingVertical-none vk_outer-bgPosition-normal" style="background:linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url(https://www.vektor-inc.co.jp/wp-content/uploads/2015/08/entrepreneur-1340649_640.jpg);border:0px none #000;border-radius:4px"><div class="vk_outer_container"><!-- wp:vk-blocks/spacer {"pc":30,"tablet":25,"mobile":20} --> | |
<div class="vk_spacer"><div class="vk_spacer-display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_custom_template_file() { | |
if ( get_post_type() == 'post' && is_single() ) { | |
// 読み込ませたいファイルを指定 | |
require( 'template-parts/doc/frame-salary-archive.php' ); | |
die(); | |
} | |
} | |
add_action( 'template_redirect', 'my_custom_template_file' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'my_remove_action' ); | |
function my_remove_action() { | |
remove_action( 'wp_enqueue_scripts', '外すアクション', 10, 2 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var browserSync = require("browser-sync"); | |
browserSync({ | |
proxy: 'localhost:9292', | |
files: [ | |
"./css/**/*", | |
"./js/**/*", | |
"./images/**/*", | |
"./fonts/**/*", | |
"./**/*.php", | |
] |