WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

Yoast\WP\SEO\Integrations

Duplicate_Post_Integration{} Yoast 1.0

Class to manage the integration with Yoast Duplicate Post.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Duplicate_Post_Integration = new Duplicate_Post_Integration();
// use class methods

Методы

  1. exclude_zapier_meta( $meta_excludelist )
  2. register_hooks()

Код Duplicate_Post_Integration{} Yoast 15.6.2

<?php
class Duplicate_Post_Integration implements Integration_Interface {

	use No_Conditionals;

	/**
	 * Initializes the integration.
	 *
	 * This is the place to register hooks and filters.
	 *
	 * @return void
	 */
	public function register_hooks() {
		\add_filter( 'duplicate_post_excludelist_filter', [ $this, 'exclude_zapier_meta' ] );
	}

	/**
	 * Filters out the Zapier meta when you copy a post with Yoast Duplicate Post.
	 *
	 * @param array $meta_excludelist The current excludelist of meta fields.
	 *
	 * @return array The updated excludelist.
	 */
	public function exclude_zapier_meta( $meta_excludelist ) {
		$meta_excludelist[] = 'zapier_trigger_sent';
		return $meta_excludelist;
	}
}