Title: LibWp
Author: Mostafa Soufi
Published: <strong>Agẹmọ  19, 2012</strong>
Last modified: Igbe 4, 2021

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/libwp/assets/icon-256x256.png?rev=1043606)

# LibWp

 Láti ọwọ́ [Mostafa Soufi](https://profiles.wordpress.org/mostafas1990/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/libwp.2.2.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/libwp/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/libwp/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/libwp/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/libwp/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/libwp/)

## Àpèjúwe

Provide some simple functionality to register some hooks that could not register
inside the WordPress themes

### Quick Start

Get instance of main class.

    ```
    LibWp();
    ```

**Post type**

    ```
    LibWp()->postType();
    ```

**Taxonomy**

    ```
    LibWp()->taxonomy();
    ```

### Register a new taxonomy

    ```
    LibWp()->postType()
        ->setName('book')
        ->setLabels([
            'name'          => _x('Books', 'Post type general name', 'textdomain'),
            'singular_name' => _x('Book', 'Post type singular name', 'textdomain'),
            'menu_name'     => _x('Books', 'Admin Menu text', 'textdomain'),
            'add_new'       => __('Add New', 'textdomain'),
            'edit_item'     => __('Edit Book', 'textdomain'),
            'view_item'     => __('View Book', 'textdomain'),
            'all_items'     => __('All Books', 'textdomain'),
        ])
        ->setFeatures([
            'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments'
        ])
        ->setArgument('show_ui', true)
        ->register();
    ```

### Register a new taxonomy belongs to previous post type

    ```
    LibWp()->taxonomy()
        ->setName('types')
        ->setPostTypes('book')
        ->setArgument('show_in_rest', true)
        ->setLabels([
            'name'          => _x('Types', 'taxonomy general name', 'textdomain'),
            'singular_name' => _x('Type', 'taxonomy singular name', 'textdomain'),
            'search_items'  => __('Search Types', 'textdomain'),
            'all_items'     => __('All Types', 'textdomain'),
            'edit_item'     => __('Edit Type', 'textdomain'),
            'add_new_item'  => __('Add New Type', 'textdomain'),
            'new_item_name' => __('New Type Name', 'textdomain'),
            'menu_name'     => __('Types', 'textdomain'),
        ])
        ->register();
    ```

## Ìgbéwọlẹ̀

 1. Upload `libwp` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“LibWp” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin
yìí.

Àwọn Olùkópa

 *   [ Mostafa Soufi ](https://profiles.wordpress.org/mostafas1990/)
 *   [ Navid Kashani ](https://profiles.wordpress.org/kashani/)
 *   [ VeronaLabs ](https://profiles.wordpress.org/veronalabs/)

[Túmọ̀ “LibWp” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/libwp)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/libwp/), ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/libwp/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/libwp/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/libwp/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 2.2

 * Added support filters post type and taxonomy
 * Registered an example of post type & taxonomy after plugin initialization.

#### 2.1

 * Added support custom argument for register the taxonomy

#### 2.0

 * Changed the structure fo boilerplate

#### 1.0

 * Initial the plugin

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **2.2**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 5 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **300+**
 *  Ẹ̀yà WordPress ** 3.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.6.17**
 *  Ẹ̀yà PHP ** 7.1 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/libwp/)
 * Àwọn àmì
 * [functionality](https://yor.wordpress.org/plugins/tags/functionality/)[library](https://yor.wordpress.org/plugins/tags/library/)
   [post type](https://yor.wordpress.org/plugins/tags/post-type/)[taxonomy](https://yor.wordpress.org/plugins/tags/taxonomy/)
   [theme](https://yor.wordpress.org/plugins/tags/theme/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/libwp/advanced/)

## Àwọn ìbò

 4 lára àwọn ìràwọ̀ 5.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/libwp/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/libwp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/libwp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/libwp/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/libwp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/libwp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/libwp/reviews/)

## Àwọn Olùkópa

 *   [ Mostafa Soufi ](https://profiles.wordpress.org/mostafas1990/)
 *   [ Navid Kashani ](https://profiles.wordpress.org/kashani/)
 *   [ VeronaLabs ](https://profiles.wordpress.org/veronalabs/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/libwp/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://wp-sms-pro.com/donate)