remove_query_arg

Definition:
function remove_query_arg( $key, $query=false ) {}

Removes an item or list from the query string.

Parameters

  • string|array $key: Query key or keys to remove.
  • bool $query: When false uses the $_SERVER value.

Return values

returns:New URL query string.

Source code

function remove_query_arg( $key, $query=false ) {

	if ( is_array( $key ) ) { // removing multiple keys

		foreach ( $key as $k )

			$query = add_query_arg( $k, false, $query );

		return $query;

	}

	return add_query_arg( $key, false, $query );

}

2719

remove_post_type_support

Definition:
function remove_post_type_support( $post_type, $feature ) {}

Remove support for a feature from a post type.

Parameters

  • string $post_type: The post type for which to remove the feature
  • string $feature: The feature being removed

Source code

function remove_post_type_support( $post_type, $feature ) {

	global $_wp_post_type_features;



	if ( !isset($_wp_post_type_features[$post_type]) )

		return;



	if ( isset($_wp_post_type_features[$post_type][$feature]) )

		unset($_wp_post_type_features[$post_type][$feature]);

}

2717

remove_option_whitelist

Definition:
function remove_option_whitelist( $del_options, $options = '' ) {}

Parameters

  • unknown_type $del_options
  • unknown_type $options

Source code

function remove_option_whitelist( $del_options, $options = '' ) {

	if ( $options == '' )

		global $whitelist_options;

	else

		$whitelist_options = $options;



	foreach ( $del_options as $page => $keys ) {

		foreach ( $keys as $key ) {

			if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) {

				$pos = array_search( $key, $whitelist_options[ $page ] );

				if ( $pos !== false )

					unset( $whitelist_options[ $page ][ $pos ] );

			}

		}

	}



	return $whitelist_options;

}

2715

remove_option_update_handler

Definition:
function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {}

Unregister a setting

Parameters

  • unknown_type $option_group
  • unknown_type $option_name
  • unknown_type $sanitize_callback

Source code

function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {

	_deprecated_function( __FUNCTION__, '3.0', 'unregister_setting()' );

	return unregister_setting( $option_group, $option_name, $sanitize_callback );

}

2713

remove_meta_box

Definition:
function remove_meta_box($id, $page, $context) {}

Remove a meta box from an edit form.

Parameters

  • string $id: String for use in the ‘id’ attribute of tags.
  • string|object $screen: The screen on which to show the box (post, page, link).
  • string $context: The context within the page where the boxes should show (‘normal’, ‘advanced’).

Source code

function remove_meta_box($id, $page, $context) {

	global $wp_meta_boxes;



	if ( !isset($wp_meta_boxes) )

		$wp_meta_boxes = array();

	if ( !isset($wp_meta_boxes[$page]) )

		$wp_meta_boxes[$page] = array();

	if ( !isset($wp_meta_boxes[$page][$context]) )

		$wp_meta_boxes[$page][$context] = array();



	foreach ( array('high', 'core', 'default', 'low') as $priority )

		$wp_meta_boxes[$page][$context][$priority][$id] = false;

}

2711