craigiswayne/wp-siza

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. No replacement package was suggested.

Helper functions I use for my WordPress development

This package has no released version yet, and little information is available.


README

Helper functions I use during my WordPress development

Latest Stable Version Total Downloads composer.lock available License

Usage

Require the package via composer

composer require craigiswayne/wp-siza

Access the namespace in your php files

<?php
use Splinter\WP;

Helper functions

  • `WP\is_debug`
  • `WP\unsanitize`
  • `WP\is_debug`
  • `WP\is_script_debug`
  • `WP\YouTube\get_thumbnail_url`

Helper Classes

WP\Widget

`WP\Widget` is more of a bridge to Carbon Fields. Allows you to easily create Widgets by just extending the this class

The following additional methods exist

  • `get_ID`
  • `get_title`
  • `get_setting`
  • `get_setting_default`

WP\Sidebar

Allows you to display sidebars easily

Methods:

  • `display` (also available as an action, see below)
  • `exists`

Actions:

These actions are created for fallback purposes, so that there's no need for `class_exists` checks

  • `Splinter\WP\Sidebar\display`

WP\Post_Type

Allows you to quickly register custom post types

<?php
use Splinter\WP\Post_Type;
Post_Type::create('book');

Methods:

  • `create`