wp_get_db_schema

Parameters

  • string $scope: Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
  • int $blog_id: Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.

Return values

returns:The SQL needed to create the requested tables.

Source code

?>

17590

wp_editor

Definition:
function wp_editor( $content, $editor_id, $settings = array() {}

Renders an editor.
Using this function is the proper way to output all needed components for both TinyMCE and Quicktags. _WP_Editors should not be used directly. See http://core.trac.wordpress.org/ticket/17144.

Parameters

  • string $content: Initial content for the editor.
  • string $editor_id: HTML ID attribute value for the textarea and TinyMCE. Can only be /[a-z]+/.
  • array $settings: See _WP_Editors::editor().

Source code

function wp_editor( $content, $editor_id, $settings = array() ) {

	if ( ! class_exists( '_WP_Editors' ) )

		require( ABSPATH . WPINC . '/class-wp-editor.php' );



	_WP_Editors::editor($content, $editor_id, $settings);

}

17546

wp_cache_incr

Definition:
function wp_cache_incr( $key, $offset = 1, $group = '' ) {}

Increment numeric cache item’s value

Parameters

  • int|string $key: The cache key to increment
  • int $offset: The amount by which to increment the item’s value. Default is 1.
  • string $group: The group the key is in.

Return values

returns:False on failure, the item’s new value on success.

Source code

function wp_cache_incr( $key, $offset = 1, $group = '' ) {

	global $wp_object_cache;



	return $wp_object_cache->incr( $key, $offset, $group );

}

17449

wp_cache_decr

Definition:
function wp_cache_decr( $key, $offset = 1, $group = '' ) {}

Decrement numeric cache item’s value

Parameters

  • int|string $key: The cache key to increment
  • int $offset: The amount by which to decrement the item’s value. Default is 1.
  • string $group: The group the key is in.

Return values

returns:False on failure, the item’s new value on success.

Source code

function wp_cache_decr( $key, $offset = 1, $group = '' ) {

	global $wp_object_cache;



	return $wp_object_cache->decr( $key, $offset, $group );

}

17443

wp_allowed_protocols

Definition:
function wp_allowed_protocols() {}

Retrieve a list of protocols to allow in HTML attributes.

Return values

returns:Array of allowed protocols

Defined filters

  • kses_allowed_protocols
    apply_filters( 'kses_allowed_protocols', $protocols )

Source code

function wp_allowed_protocols() {

	static $protocols;



	if ( empty( $protocols ) ) {

		$protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' );

		$protocols = apply_filters( 'kses_allowed_protocols', $protocols );

	}



	return $protocols;

}

17428