Title: LibWp
Author: Mostafa Soufi
Published: <strong>2012-07-19</strong>
Last modified: 2021-04-04

---

Szukaj wtyczek

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

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

# LibWp

 Autor: [Mostafa Soufi](https://profiles.wordpress.org/mostafas1990/)

[Pobierz](https://downloads.wordpress.org/plugin/libwp.2.2.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/libwp/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/libwp/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/libwp/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/libwp/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/libwp/)

## Opis

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();
    ```

## Instalacja

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

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„LibWp” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.

Zaangażowani

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

[Przetłumacz wtyczkę “LibWp” na swój język.](https://translate.wordpress.org/projects/wp-plugins/libwp)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/libwp/), sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/libwp/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/libwp/) przez
[RSS](https://plugins.trac.wordpress.org/log/libwp/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 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

## Meta

 *  Wersja **2.2**
 *  Ostatnia aktualizacja **5 lat temu**
 *  Włączone instalacje **300+**
 *  Wersja WordPressa ** 3.0 lub nowszej **
 *  Testowano do **5.6.17**
 *  Wersja PHP ** 7.1 lub nowszej **
 *  Język
 * [English (US)](https://wordpress.org/plugins/libwp/)
 * Tagi
 * [functionality](https://pl.wordpress.org/plugins/tags/functionality/)[library](https://pl.wordpress.org/plugins/tags/library/)
   [post type](https://pl.wordpress.org/plugins/tags/post-type/)[taxonomy](https://pl.wordpress.org/plugins/tags/taxonomy/)
   [theme](https://pl.wordpress.org/plugins/tags/theme/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/libwp/advanced/)

## Oceny

 4 na 5 gwiazdek.

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

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

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/libwp/reviews/)

## Zaangażowani

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

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/libwp/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://wp-sms-pro.com/donate)