Skip to content

Commit

Permalink
Merge branch 'master' into feat/i18n-tax-cpt
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen authored Jan 10, 2024
2 parents 034596c + f21aec7 commit 92a6193
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions inc/includes/taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/**
* @Author: Niku Hietanen
* @Date: 2020-02-18 15:06:23
* @Last Modified by: Timi Wahalahti
* @Last Modified time: 2023-03-31 14:50:32
* @Last Modified by: Roni Laukkarinen
* @Last Modified time: 2024-01-10 15:35:17
*
* @package air-light
*/
Expand All @@ -16,32 +16,31 @@
abstract class Taxonomy {

/**
* Taxonomy slug or name.
* Taxonomy slug or name
*
* @var string
*/
protected $slug;

/**
* Translations used in labels
*
* @var array(string)
*/
* Translations used in labels
*
* @var array(string)
*/
public $translations;


public function __construct( $slug ) {
$this->slug = $slug;
$this->translations = [];
}

/**
* Register taxonomy handler.
* Register taxonomy handler
*/
abstract protected function register();

/**
* Registers a custom taxonomy in WordPress.
* Registers a custom taxonomy in WordPress
*
* @param string $slug Taxonomy slug. Should only contain lowercase letters
* and the underscore character, and not be more than
Expand Down

0 comments on commit 92a6193

Please sign in to comment.