WP Manifestindependent plugin directory
manifest / developer / gdd-wp-dev-helpers

Nanato Dev Helpers

A collection of development helper functions for WordPress, including environment detection and debug output

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gabydevdev/gdd-wp-dev-helpers/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Development helpers for WordPress projects.

Version

Current version: 1.2.0

Features

  • Environment detection helpers:
    • \NANATO\DEV\is_dev()
    • \NANATO\DEV\is_dev_env( 'local' )
  • Debug helpers:
    • \NANATO\DEV\print_log( $value )
    • \NANATO\DEV\debug( $value )
    • \NANATO\DEV\console_log( $value )
  • Search visibility protection for development environments:
    • Forces blog_public to discourage indexing while active in dev.
    • Restores previous blog_public value on plugin deactivation.

Usage

Call helper functions from anywhere with fully-qualified names:

\NANATO\DEV\console_log( $variable );
\NANATO\DEV\debug( $variable );

Changelog

1.2.0

  • Added modular search visibility handler.
  • Added activation/deactivation behavior for restoring blog_public.
  • Added uninstall cleanup for plugin backup option.
  • Standardized fully-qualified namespace usage examples.