core\util\class-post-util.php
Méthodes utiles pour les posts de WordPress.
- Author
- Eoxia
- Copyright
- 2015-2018 Eoxia
- Package
- EO_Framework\Core\Util
- Since
- 0.1.0
- Version
- 1.0.0
\eoxia\Post_Util
Package: EO_Framework\Core\Util





Gestion des posts
- Parent(s)
- \eoxia\Singleton_Util
- Inherited_from
- \eoxia\Singleton_Util
Properties
Methods

__construct() : voidfinalinherited
Appelle le constructeur parent
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidLe constructeur obligatoirement pour utiliser la classe \eoxia\Singleton_Util
Details
- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidabstractinherited
Le constructeur pour les enfants
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0

g() : \eoxia\Singleton_Utilstaticfinalinherited
Récupères l'instance courante
Inherited from:Returns
Details
| Type | Description |
|---|---|
| \eoxia\Singleton_Util | L'instance courante |
- Since
- 0.1.0
- Version
- 1.0.0

have_child(integer $parent_id, array $post_types) : booleanstatic
Vérifie si le post contient un enfant.
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $parent_id | integer | L'ID du post. |
| $post_types | array | Les post types à rechercher. |
| Type | Description |
|---|---|
| boolean |
- Since
- 0.5.0
- Version
- 1.0.0

is_parent(integer $parent_id, integer $children_id) : booleanstatic
Est ce que le post est un parent des enfants ?
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $parent_id | integer | (test: 10) L'id du post parent. |
| $children_id | integer | (test: 11) L'id du post enfant. |
| Type | Description |
|---|---|
| boolean | true|false |
- Since
- 0.1.0
- Version
- 1.0.0