• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Indexable_Term_Watcher::delete_indexable() – Deletes a term from the index.

You appear to be a bot. Output may be restricted

Description

Deletes a term from the index.

Usage

$void = Indexable_Term_Watcher::delete_indexable( $term_id );

Parameters

$term_id
( int ) required – The Term ID to delete.

Returns

void

Source

File name: wordpress-seo/src/watchers/indexable-term-watcher.php


Lines:

1 to 10 of 10
  public function delete_indexable( $term_id ) {
    $indexable = $this->repository->find_by_id_and_type( $term_id, 'term', false );

    if ( ! $indexable ) {
      return;
    }

    $indexable->delete();
  }
 

 View on GitHub View on Trac

Published: 27th November 2019 | Last updated: 27th November 2019

Primary Sidebar

Information

Function name: Indexable_Term_Watcher::delete_indexable
Class ref: Indexable_Term_Watcher
Plugin ref: Yoast SEO
Version: 12.6.2
Sourcefile: src/watchers/indexable-term-watcher.php
File ref: src/watchers/indexable-term-watcher.php
Deprecated?: No
API Letters: D,I,T,W

Footer

Yoast SEO a2z Yoast SEO a2z
WordPress SEO a2z
WordPress 5.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wordpress-seo.wp-a2z.org
© Copyright Yoast SEO a2z 2017-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites