PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/veezar.kerihosting.com/wp-content/plugins/buddypress/cli/src/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/veezar.kerihosting.com/wp-content/plugins/buddypress/cli/src/xprofile.php |
<?php namespace Buddypress\CLI\Command; use WP_CLI; /** * Manage BuddyPress XProfile. * * ## EXAMPLES * * # Save a xprofile data to a user with its field and value. * $ wp bp xprofile data set --user-id=45 --field-id=120 --value=teste * Success: Updated XProfile field "Field Name" (ID 120) with value "teste" for user user_login (ID 45). * * # Create a xprofile group. * $ wp bp xprofile group create --name="Group Name" --description="Xprofile Group Description" * Success: Created XProfile field group "Group Name" (ID 123). * * # List xprofile fields. * $ wp bp xprofile field list */ class XProfile extends BuddyPressCommand { /** * Dependency check for this CLI command. */ public static function check_dependencies() { parent::check_dependencies(); if ( ! bp_is_active( 'xprofile' ) ) { WP_CLI::error( 'The XProfile component is not active.' ); } } /** * Adds description and subcomands to the DOC. * * @param object $command Command. * @return array */ private function command_to_array( $command ) { $dump = array( 'name' => $command->get_name(), 'description' => $command->get_shortdesc(), 'longdesc' => $command->get_longdesc(), ); foreach ( $command->get_subcommands() as $subcommand ) { $dump['subcommands'][] = $this->command_to_array( $subcommand ); } if ( empty( $dump['subcommands'] ) ) { $dump['synopsis'] = (string) $command->get_synopsis(); } return $dump; } }