wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
add_site_meta › WordPress Function
Od5.0.0
Przestarzałyn/a
› add_site_meta ( $site_id, $meta_key, $meta_value, $unique = false )
Parametry: (4) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Adds metadata to a site.
Źródło
function add_site_meta( $site_id, $meta_key, $meta_value, $unique = false ) { // Bail if site meta table is not installed. if ( ! is_site_meta_supported() ) { /* translators: %s: database table name */ _doing_it_wrong( __FUNCTION__, sprintf( __( 'The %s table is not installed. Please run the network database upgrade.' ), $GLOBALS['wpdb']->blogmeta ), '5.0.0' ); return false; } $added = add_metadata( 'blog', $site_id, $meta_key, $meta_value, $unique ); // Bust site query cache. if ( $added ) { wp_cache_set( 'last_changed', microtime(), 'sites' ); } return $added; }