twentytwenty_toggle_duration

過濾鉤子
apply_filters( 'twentytwenty_toggle_duration', 250 )
引數
  • (int) $duration Duration in milliseconds.
    Required:
定義位置
  • wp-content/themes/twentytwenty/inc/template-tags.php , line 808
相關勾子
twentytwenty_site_descriptiontwentytwenty_site_logotwentytwenty_svg_icon_colortwentytwenty_get_elements_arraytwentytwenty_starter_content
相關方法
human_readable_duration_get_path_to_translation
引入
Twenty Twenty 1.0
棄用
-

twentytwenty_toggle_duration:這是一個過濾器鉤子,允許您更改切換動畫的持續時間。

過濾通常用於子選單切換的動畫持續時間/速度。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$duration = apply_filters( 'twentytwenty_toggle_duration', 250 );
$duration = apply_filters( 'twentytwenty_toggle_duration', 250 );
$duration = apply_filters( 'twentytwenty_toggle_duration', 250 );

常見問題

FAQs
檢視更多 >