2017 © Pedro Peláez
 

library wp-cubi-helpers

Collection of wp-cubi functions for WordPress

image

globalis/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  • Wednesday, July 25, 2018
  • by globalis
  • Repository
  • 8 Watchers
  • 3 Stars
  • 1,430 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 21 Versions
  • 62 % Grown

The README.md

wp-cubi-helpers

Build Status Latest Stable Version License, (*1)

Collection of wp-cubi functions for WordPress, (*2)

wp-cubi, (*3)

Requirements

  • PHP 8.0, 8.1 or 8.2

Installation

  • composer require globalis/wp-cubi-helpers

Available functions

Cache

  • flush_cache_all()
  • flush_cache_wpdb()
  • flush_cache_object()
  • get_size_cache_wpdb(): int
  • get_size_cache_object(): int
  • reset_cache_wpdb(int $size)
  • reset_cache_object(int $size)
  • pop_cache_wpdb()
  • pop_cache_object()
  • savequeries_enabled(): bool

Debug

  • mysql_enable_nocache_mod()
  • mysql_disable_nocache_mod()
  • query_set_nocache(string $query): string
  • time_start(string $timer = 'default'): float
  • time_elapsed(string $timer = 'default', bool $human = true)
  • memory_get_usage_kb(bool $human = true, bool $real_usage = false)
  • memory_get_usage_mb(bool $human = true, bool $real_usage = false)
  • memory_get_peak_usage_kb(bool $human = true, bool $real_usage = false)
  • memory_get_peak_usage_mb(bool $human = true, bool $real_usage = false)
  • memory_usage_format(float $usage, string $unit, bool $human)

Filters

  • add_filter(string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1)
  • add_action(string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1)
  • remove_filter_anonymous_object(string $tag, string $class_name, string $method_name, int $priority = 10): bool

Mails

  • wp_mail_html($to, string $subject, string $message, $headers = [], $attachments = []): bool
  • get_permalink_by_template(string $template, $default = false)

Templating

  • include_template_part($file, $data = [], $return = false)

Urls

  • get_current_url(bool $remove_query_args = false): string
  • current_url_starts_with(string $search, bool $remove_query_args = false): bool
  • current_url_ends_with(string $search, bool $remove_query_args = false): bool

Utils

  • str_starts_with(string $string, string $search): bool
  • str_ends_with(string $string, string $search): bool
  • trigger_404(\WP_Query $query = null)
  • override_php_limits(int $time_limit = 604800, string $memory_limit = '512M')

Development

Before opening pull requests, please check and apply project coding standards with ./vendor/bin/phpcs . and/or ./vendor/bin/phpcbf ., (*4)

The Versions

25/07 2018

dev-master

9999999-dev https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Requires

  • php >=7.0

 

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

25/07 2018

0.3.1

0.3.1.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Requires

  • php >=7.0

 

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

25/07 2018

dev-develop

dev-develop https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Requires

  • php >=7.0

 

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

19/07 2018

dev-feature_function_get_client_ip_address

dev-feature_function_get_client_ip_address https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Requires

  • php >=7.0

 

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

12/07 2018

0.3.0

0.3.0.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Requires

  • php >=7.0

 

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

08/06 2018

dev-feature_wp_query_iterative

dev-feature_wp_query_iterative https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Requires

  • php >=7.0

 

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

01/06 2018

0.2.2

0.2.2.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

25/05 2018

dev-feature_functions_cache

dev-feature_functions_cache https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

09/05 2018

0.2.1

0.2.1.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

09/01 2018

0.2.0

0.2.0.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

09/01 2018

0.1.9

0.1.9.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

09/01 2018

dev-feature_filters

dev-feature_filters https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

20/12 2017

0.1.8

0.1.8.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

14/12 2017

0.1.7

0.1.7.0 https://github.com/globalis-ms/wp-cubi-helpers

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

02/11 2017

0.1.6

0.1.6.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

25/09 2017

0.1.5

0.1.5.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

18/08 2017

0.1.4

0.1.4.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

16/08 2017

0.1.3

0.1.3.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

16/08 2017

0.1.2

0.1.2.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

10/08 2017

0.1.1

0.1.1.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis

10/08 2017

0.1.0

0.1.0.0 https://github.com/wp-globalis-tools/wp-cubi-helpers/wp-cubi/

Collection of wp-cubi functions for WordPress

  Sources   Download

GPL-2.0

The Development Requires

wordpress helpers wp composer functions snippets wp-cubi globalis