芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/anarchy.ycreate.jp/wp-content/themes/snow-monkey/app/setup/seo.php
get_description() ); } elseif ( is_single() ) { $ogp = new \Inc2734\WP_OGP\App\Controller\Single(); return wp_strip_all_tags( $ogp->get_description() ); } return $description; } ); /** * meta thumbnail. * * @param string $thumbnail The thumbnail URL. * @return string */ add_filter( 'inc2734_wp_seo_thumbnail', function( $thumbnail ) { if ( ! $thumbnail && is_singular() ) { $thumbnail = get_theme_mod( 'default-thumbnail' ); return $thumbnail && preg_match( '|^\d+$|', $thumbnail ) ? wp_get_attachment_image_url( $thumbnail, 'full' ) : $thumbnail; } return $thumbnail; } ); /** * Print Google Tag Manager script in body. * * @return void */ remove_action( 'wp_footer', 'inc2734_wp_seo_googletagmanager_noscript_tag_install' ); add_action( 'snow_monkey_prepend_body', 'inc2734_wp_seo_googletagmanager_noscript_tag_install' ); add_action( 'snow_monkey_entry_meta_items', function() { if ( 'modified-date' === get_theme_mod( 'post-date' ) ) { ob_start(); snow_monkey_entry_meta_items_modified(); $modified = ob_get_clean(); if ( $modified ) { remove_action( 'snow_monkey_entry_meta_items', 'snow_monkey_entry_meta_items_published', 10 ); } } elseif ( 'modified-date-high' === get_theme_mod( 'post-date' ) ) { remove_action( 'snow_monkey_entry_meta_items', 'snow_monkey_entry_meta_items_published', 10 ); remove_action( 'snow_monkey_entry_meta_items', 'snow_monkey_entry_meta_items_modified', 20 ); add_action( 'snow_monkey_entry_meta_items', 'snow_monkey_entry_meta_items_modified', 10 ); add_action( 'snow_monkey_entry_meta_items', 'snow_monkey_entry_meta_items_published_no_time', 20 ); } }, 9 );