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 | |
/** | |
* Plugin Name: Sample Plugin | |
* Plugin URI: PLUGIN SITE HERE | |
* Description: PLUGIN DESCRIPTION HERE | |
* Author: YOUR NAME HERE | |
* Author URI: YOUR SITE HERE | |
* Text Domain: sample-plugin | |
* Domain Path: /languages | |
* Version: 0.1.0 |
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 | |
/** | |
* Class SampleTest | |
* | |
* @package Sample_Plugin | |
*/ | |
/** | |
* Sample test case. | |
*/ |
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
public function _set_preload_stylesheet( $tag, $handle, $src ) { | |
$handles = apply_filters( 'inc2734_wp_page_speed_optimization_output_head_styles', [] ); | |
if ( in_array( $handle, $handles ) && 0 === strpos( $src, home_url() ) ) { | |
$sitepath = site_url( '', 'relative' ); | |
$abspath = untrailingslashit( ABSPATH ); | |
if ( $sitepath ) { | |
$abspath = preg_replace( '|(.*?)' . preg_quote( $sitepath ) . '$|', '$1', $abspath ); | |
} |
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
"css:style": "node-sass --include-path=node_modules/node-normalize-scss resources/src/css/style.scss resources/assets/css/style.css && postcss resources/assets/css/style.css -o resources/assets/css/style.css --no-map -c=postcss.config.js && cssnano resources/assets/css/style.css resources/assets/css/style.min.css --no-zindex" |
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( | |
'mw-wp-form-generator-content', | |
function( $content ) { | |
return str_replace( '[mwform_backButton] [mwform_submitButton]', '[mwform_submit]', $content ); | |
}, | |
11 | |
); |
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
@media (min-width: 1024px) { | |
.l-header { | |
position: fixed; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
width: 300px; | |
} | |
.admin-bar .l-header { |
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_filter( | |
'snow_monkey_template_part_render', | |
function( $html, $slug, $name ) { | |
if ( 'template-parts/content/entry/content/content' === $slug && 'page' === $name ) { | |
$share_buttons_display_position = get_option( 'mwt-share-buttons-display-position' ); | |
$share_buttons = get_option( 'mwt-share-buttons-buttons' ); | |
ob_start(); | |
if ( in_array( $share_buttons_display_position, [ 'top', 'both' ] ) && $share_buttons ) { |
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 | |
/** | |
* カスタムフィールドを定義 | |
* | |
* @param array $settings Smart_Custom_Fields_Setting オブジェクトの配列 | |
* @param string $type 投稿タイプ or ロール | |
* @param int $id 投稿ID or ユーザーID | |
* @param string $meta_type post | user | |
* @return array | |
*/ |
OlderNewer