Install
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.zipNo 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_publicto discourage indexing while active in dev. - Restores previous
blog_publicvalue on plugin deactivation.
- Forces
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.