public __construct ( Inpsyde\MultilingualPress\API\ContentRelations $content_relations, string $key_base ) | ||
$content_relations | Inpsyde\MultilingualPress\API\ContentRelations | Content relations object. |
$key_base | string | Term key base. |
public function __construct(ContentRelations $content_relations, $key_base)
{
$this->content_relations = $content_relations;
$this->key_base = $key_base;
$this->current_site_id = get_current_blog_id();
$current_screen = get_current_screen();
$this->taxonomy_name = $current_screen->taxonomy;
}