Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




set_theme_mod [ WordPress Function ]

set_theme_mod ( $name, $value )
Parameters:
  • (string) $name Theme modification name.
  • (string) $value theme modification value.
Defined at:



Update theme modification value for the current theme.

Source


<?php
function set_theme_mod$name$value ) {
    
$mods get_theme_mods();

    
$mods$name ] = $value;

    
$theme get_option'stylesheet' );
    
update_option"theme_mods_$theme"$mods );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics