wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_cache_set_multiple_salted › WordPress Function
Seit6.9.0
Veraltetn/v
› wp_cache_set_multiple_salted ( $data, $group, $salt, $expire = 0 )
Parameter: (4) |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Stores multiple pieces of salted data in the cache.
Ähnliche Funktionen: wp_cache_get_multiple_salted, wp_cache_set_multiple, wp_cache_get_multiple, wp_cache_set_salted, wp_cache_get_salted
Quellcode
function wp_cache_set_multiple_salted( $data, $group, $salt, $expire = 0 ) { $salt = is_array( $salt ) ? implode( ':', $salt ) : $salt; $new_cache = array(); foreach ( $data as $key => $value ) { $new_cache[ $key ] = array( 'data' => $value, 'salt' => $salt, ); } return wp_cache_set_multiple( $new_cache, $group, $expire ); } endif;