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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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