• 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 / WPSEO_Admin_User_Profile::clear_author_sitemap_cache() – Clear author sitemap cache when settings are changed.

You appear to be a bot. Output may be restricted

Description

Clear author sitemap cache when settings are changed.

Usage

WPSEO_Admin_User_Profile::clear_author_sitemap_cache( $meta_id, $object_id, $meta_key );

Parameters

$meta_id
( int ) required – The ID of the meta option changed.
$object_id
( int ) required – The ID of the user.
$meta_key
( string ) required – The key of the meta field changed.

Returns

void

Source

File name: wordpress-seo/admin/class-admin-user-profile.php


Lines:

1 to 6 of 6
  public function clear_author_sitemap_cache( $meta_id, $object_id, $meta_key ) {
    if ( $meta_key === '_yoast_wpseo_profile_updated' ) {
      WPSEO_Sitemaps_Cache::clear( [ 'author' ] );
    }
  }
 

 View on GitHub View on Trac

Published: 27th November 2019 | Last updated: 7th February 2020

Primary Sidebar

Information

Function name: WPSEO_Admin_User_Profile::clear_author_sitemap_cache
Class ref: WPSEO_Admin_User_Profile
Plugin ref: Yoast SEO
Version: 15.9
Sourcefile: admin/class-admin-user-profile.php
File ref: admin/class-admin-user-profile.php
Deprecated?: No
API Letters: A,C,P,U,W

Footer

Yoast SEO a2z
Yoast SEO a2z
WordPress SEO a2z
WordPress 5.6.2
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-2021. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites