Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Runner::get_command_root_desc( $resource )
Contents
Source Source
File: libraries/lifterlms-cli/src/Commands/Restful/Runner.php
private static function get_command_root_desc( $resource ) { $resource = str_replace( array( '-', 'students', 'api' ), array( ' ', 'student', 'API' ), $resource ); if ( 's' !== substr( $resource, -1 ) ) { $resource .= 's'; } return sprintf( 'Manage %s.', $resource ); }
Expand full source code Collapse full source code View on GitHub