Files
branddefense.pl/wp-content/plugins/brizy/content/placeholder-wp-provider.php
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

29 lines
515 B
PHP

<?php
class Brizy_Content_PlaceholderWpProvider extends Brizy_Content_PlaceholderProvider {
const PLACEHOLDERS = [
'brizy_dc_image_alt'
];
/**
* @return array
*/
public function getAllPlaceholders() {
$out = [];
foreach ( $this->providers as $provider ) {
$placeholders = $provider->getAllPlaceholders();
foreach ( $placeholders as $placeholder ) {
if ( in_array( $placeholder->getPlaceholder(), self::PLACEHOLDERS ) ) {
$out[] = $placeholder;
}
}
}
return $out;
}
}