WordPress как на ладони
Очень Удобный и Быстрый Хостинг для сайтов на WordPress. Пользуюсь сам и вам рекомендую!
функция не описана


Indexable_Builder::save_indexable() protected Yoast 1.0

Saves and returns an indexable (on production environments only).

{} Это метод класса: Indexable_Builder{}


Indexable. The indexable.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->save_indexable( $indexable, $indexable_before );
$indexable(Indexable) (обязательный)
The indexable.
The indexable before possible changes.
По умолчанию: null

Код Indexable_Builder::save_indexable() Yoast 17.9

protected function save_indexable( $indexable, $indexable_before = null ) {
	$intend_to_save = $this->indexable_helper->should_index_indexables();

	 * Filter: 'wpseo_should_save_indexable' - Allow developers to enable / disable
	 * saving the indexable when the indexable is updated. Warning: overriding
	 * the intended action may cause problems when moving from a staging to a
	 * production environment because indexable permalinks may get set incorrectly.
	 * @param Indexable $indexable The indexable to be saved.
	 * @api bool $intend_to_save True if YoastSEO intends to save the indexable.
	$intend_to_save = \apply_filters( 'wpseo_should_save_indexable', $intend_to_save, $indexable );

	if ( ! $intend_to_save ) {
		return $indexable;

	// Save the indexable before running the WordPress hook.

	if ( $indexable_before ) {
		 * Action: 'wpseo_save_indexable' - Allow developers to perform an action
		 * when the indexable is updated.
		 * @param Indexable $indexable_before The indexable before saving.
		 * @api Indexable $indexable The saved indexable.
		\do_action( 'wpseo_save_indexable', $indexable, $indexable_before );

	return $indexable;