| | |
| | | <?php |
| | | namespace JVBase\utility; |
| | | |
| | | use JVBase\registrar\Registrar; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | | exit; |
| | | } |
| | |
| | | $this->errors = []; |
| | | $this->warnings = []; |
| | | |
| | | foreach (JVB_CONTENT ?? [] as $slug => $config) { |
| | | foreach (Registrar::getRegistered('post') as $slug => $config) { |
| | | if (isset($config['seo'])) { |
| | | $this->validateTypeSEOConfig($slug, $config['seo'], 'content', $config); |
| | | } |
| | | } |
| | | |
| | | foreach (JVB_TAXONOMY ?? [] as $slug => $config) { |
| | | foreach (Registrar::getRegistered('term') as $slug => $config) { |
| | | if (isset($config['seo'])) { |
| | | $this->validateTypeSEOConfig($slug, $config['seo'], 'taxonomy', $config); |
| | | } |
| | | } |
| | | |
| | | foreach (JVB_USER ?? [] as $slug => $config) { |
| | | foreach (Registrar::getRegistered('user') as $slug => $config) { |
| | | if (isset($config['seo'])) { |
| | | $this->validateTypeSEOConfig($slug, $config['seo'], 'user', $config); |
| | | } |