文件操作 - Block_Trait.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/src/Events/Traits/Block_Trait.php
编辑文件内容
<?php /** * A trait to group the methods common to all The Events Calendar blocks. * * @since 6.13.0 */ namespace TEC\Events\Traits; use Tribe__Events__Main as TEC; /** * Trait Block_Trait. * * @since 6.13.0 */ trait Block_Trait { /** * Register the Assets for when this block is active * * @since 4.7 * @since 6.13.0 Moved to a trait to avoid code duplication. * * @return void */ public function assets() { if ( ! $this->should_register_assets() ) { return; } tec_asset( tribe( 'tec.main' ), "tribe-events-block-{$this->slug()}", "{$this->slug()}/frontend.css", [], 'wp_enqueue_scripts', [ 'conditionals' => [ $this, 'has_block' ], 'group_path' => TEC::class . '-packages', ] ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件