Tag Archives: codex

install_blog

Install an empty blog.Creates the new blog tables and options. If calling this function directly, be sure to use switch_to_blog() first, so that $wpdb points to the new blog.

2023

Continue reading

insert_blog

Store basic site info in the blogs table.This function creates a row in the wp_blogs table and returns the new blog’s ID. It is the first step in creating a new blog.

2019

Continue reading

human_time_diff

Determines the difference between two timestamps.The difference is returned in a human readable format such as “1 hour”, “5 mins”, “2 days”.

1959

Continue reading