跳转到主要内容

最近更新的页面

0043-installation-manage-timber-with-composer

Timber 主题开发文档

title: "Managing Timber with Composer" order: "30" The following guide should help you manage the...

由 壳壳虫 更新于 2 个月前

0042-installation-intro-to-composer

Timber 主题开发文档

title: "A short intro to Composer" hideInMenu: true order: "20" If you’re familiar with the WordP...

由 壳壳虫 更新于 2 个月前

Installation

Timber 主题开发文档

You can install Timber through Composer. If you’re not familiar with Composer yet, read our short...

由 壳壳虫 更新于 2 个月前

0040-guides-wp-cli

Timber 主题开发文档

title: "WP-CLI" order: "1670" Timber includes its own wp timber command for WP-CLI, the WordPres...

由 壳壳虫 更新于 2 个月前

WooCommerce

Timber 主题开发文档

Point of entry - main WooCommerce PHP file The first step to get your WooCommerce project integra...

由 壳壳虫 更新于 2 个月前

Widgets

Timber 主题开发文档

In a world where the block editor is used more and more, widgets are getting less important. Howe...

由 壳壳虫 更新于 2 个月前

Users

Timber 主题开发文档

To get a user object in Timber, you use Timber::get_user() and pass the WordPress user ID as an ...

由 壳壳虫 更新于 2 个月前

Twig

Timber 主题开发文档

With Timber, you can use all the features that Twig has to offer, plus some more. In this guide, ...

由 壳壳虫 更新于 2 个月前

Twig filters

Timber 主题开发文档

General Filters Twig offers a variety of filters to transform text and other information into the...

由 壳壳虫 更新于 2 个月前

Twig Blocks

Timber 主题开发文档

Timber provides powerful functionality for rendering specific blocks from Twig templates, both fr...

由 壳壳虫 更新于 2 个月前

Automated Testing

Timber 主题开发文档

Setup a testing environment with PHPUnit Follow the setup steps for Varying Vagrant Vagrants. If ...

由 壳壳虫 更新于 2 个月前

Terms

Timber 主题开发文档

Get a term To get a term object in Timber, you use Timber::get_term() and pass the WordPress ter...

由 壳壳虫 更新于 2 个月前

Template Locations

Timber 主题开发文档

Timber::render('teaser.twig'); When you use Timber::render(), Timber::compile(), or Twig includ...

由 壳壳虫 更新于 2 个月前

Sidebars

Timber 主题开发文档

So you want a sidebar? Method 1: PHP file Let's say every page on the site has the same content g...

由 壳壳虫 更新于 2 个月前

Shortcodes

Timber 主题开发文档

Let’s implement a [youtube] shortcode which embeds a youtube video. For the desired usage of [y...

由 壳壳虫 更新于 2 个月前

Routing

Timber 主题开发文档

Timber 1.x shipped with the Upstatement/routes package for custom routes (see Routing Guide for T...

由 壳壳虫 更新于 2 个月前

Usage

Carbon Fields 开发者文档

Fields are the building block of every container. New field are created using the make method F...

由 壳壳虫 更新于 2 个月前

Time

Carbon Fields 开发者文档

Renders a time picker field. Field::make( 'time', 'opens_at', __( 'Opening time' ) ) Config metho...

由 壳壳虫 更新于 2 个月前

Textarea

Carbon Fields 开发者文档

Multiline text input with HTML allowed. Field::make( 'textarea', 'crb_phone_numbers', __( 'Phone ...

由 壳壳虫 更新于 2 个月前

Text

Carbon Fields 开发者文档

The text field is the simplest and most generic field. It renders a text input field. Field::make...

由 壳壳虫 更新于 2 个月前