文件操作 - post-edit.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/partials/post-edit.php
编辑文件内容
<?php /** * Edit post link. * * @package Total WordPress theme * @subpackage Partials * @version 5.10.1 */ defined( 'ABSPATH' ) || exit; $class = 'post-edit wpex-my-40 wpex-print-hidden'; if ( 'full-screen' === wpex_get_post_layout() ) { $class .= ' container'; } $extra_links = '<a href="#" class="hide-post-edit">' . wpex_get_svg( 'material/close', '18' ) . '<span class="screen-reader-text">' . esc_html__( 'Hide Post Edit Links', 'total' ) . '</span></a>'; if ( current_user_can( 'edit_post', get_the_ID() ) && totaltheme_call_static( 'Theme_Builder\Post_Template', 'has_template' ) && $template_id = (int) totaltheme_call_static( 'Theme_Builder\Post_Template', 'get_template_id' ) ) { $extra_links = '<a class="edit-template" href="' . esc_url( admin_url( 'post.php?post=' . $template_id . '&action=edit' ) ) . '">' . esc_html__( 'Edit Template', 'total' ) . '</a>' . $extra_links; } ob_start(); edit_post_link( null, // use wp default '<div class="' . esc_attr( $class ) . '">', ' ' . $extra_links . '</div>' ); $edit_link = ob_get_clean(); if ( $edit_link ) { wp_enqueue_style( 'wpex-post-edit' ); wp_enqueue_script( 'wpex-hide-edit-links' ); // @codingStandardsIgnoreLine echo $edit_link; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件