內容簡介
該外掛會新增自定義設定和 [company] 短代碼。
Company 短代碼有下列屬性:
"id"(用於多個聯絡人),可以是:
primary, secondary, tertiary, quaternary, fivefold, company_6, company_7, company_8..等。
"field" 可以是:
name、image、address、numbers、email、time_work、socials。
"filter"(預設為 'the_content')
如果要停用預設過濾器,請將其設置為無。
"before"
自訂 HTML (前)。
"after"
自訂 HTML (後)。
例如:
[company id="secondary" field="address" filter="none" before="Our address:"]
用於多個聯絡人,或
[company field="email"]
只用於主要聯絡人。
您可以使用以下指令來新增自訂欄位:
new CDevelopers\Contacts\CustomControl('handle', array(
'type' => 'text', // wp_customizer 預設值
'label' => '', // 任何標題
),
'Custom_Control'); // 設置個人的預先註冊的控制元件類名。
外掛標籤
開發者團隊
原文外掛簡介
Plugin will add customizer settings and [company] shortcode.
Company shortcode has attrs:
“id” (for muliple contacts) may be:
primary, secondary, tertiary, quaternary, fivefold, company_6, company_7, company_8.. etc..
"field" may be
name, image, address, numbers, email, time_work, socials
"filter" (default as 'the_content')
Set none for disable default filter
"before"
The some custom html
"after"
The some custom html
for example:
[company id=”secondary” field=”address” filter=”none” before=”Our address:”]
for muliple, or
[company field=”email”]
for primary only
for custom fields use:
new CDevelopers\Contacts\CustomControl(‘handle’, array(
‘type’ => ‘text’, // wp_customizer default types
‘label’ => ”, // Any title
),
‘Custom_Control’); // Set personal preregistred control classname
