File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ This plugin provides command line interface for creating dummy job and resume.
1313
1414# How to use:
1515
16- ## cbxjob
16+ ## comfortjob
1717
1818### All possible default params:
1919
2020```
21- wp cbxjob -generate --total=100 --status=published --is-remote=0 --is-featured=1 --is-filled=0 --salary-unit=monthly --currency=USD
21+ wp comfortjob -generate --total=100 --status=published --is-remote=0 --is-featured=1 --is-filled=0 --salary-unit=monthly --currency=USD
2222```
2323
2424total = number of jobs to be created.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class DummyJobGenerate extends Factory {
1919 * @since 1.0.0
2020 */
2121 public function wp_cli_register_commands () {
22- \WP_CLI ::add_command ( 'cbxjob -generate ' , [ $ this , "run " ] );
22+ \WP_CLI ::add_command ( 'comfortjob -generate ' , [ $ this , "run " ] );
2323 } //end method wp_cli_register_commands
2424
2525 /**
@@ -106,13 +106,13 @@ public function run( $args, $assoc_args ) {
106106
107107 $ slugify = new Slugify ();
108108
109- $ existing_slugs = \Cbx \Job \Models \CBXJob ::query ()->pluck ( 'slug ' )->toArray ();
109+ $ existing_slugs = \Comfort \Job \Models \ComfortJob ::query ()->pluck ( 'slug ' )->toArray ();
110110 $ temp_slug = $ slugify ->slugify ( $ job ['title ' ] );
111- $ slug = \Cbx \Job \Helpers \CBXJobHelpers ::generate_unique_slug ( $ temp_slug , $ existing_slugs );
111+ $ slug = \Comfort \Job \Helpers \ComfortJobHelpers ::generate_unique_slug ( $ temp_slug , $ existing_slugs );
112112
113113 $ job ['slug ' ] = $ slug ;
114114
115- \Cbx \Job \Models \CBXJob ::query ()->create ( $ job );
115+ \Comfort \Job \Models \ComfortJob ::query ()->create ( $ job );
116116 }
117117 }
118118 else {
You can’t perform that action at this time.
0 commit comments