@@ -34,22 +34,7 @@ do_action( 'comfortjobapp_apply_job_form_after', $form_id, $job_id, $job, $field
3434
3535Retrieve a list of application forms for the current user.
3636
37- ```
38- <?php
39- $forms = comfortjobapp_get_application_forms([
40- 'limit' => 10,
41- 'page' => 1,
42- 'created_by' => get_current_user_id(),
43- ]);
44-
45- foreach ( $forms as $form ) {
46- echo esc_html( $form['title'] );
47- }
48- ```
49- ### 3. Enqueue Public Scripts
50- Enqueue public-facing scripts and pass JS translations.
51-
52- ```
37+ ``` php
5338<?php
5439$forms = comfortjobapp_get_application_forms([
5540 'limit' => 10,
@@ -62,17 +47,17 @@ foreach ( $forms as $form ) {
6247}
6348```
6449
65- ### 4 . Delete an Application
50+ ### 3 . Delete an Application
6651Delete an application by ID.
67- ```
52+ ``` php
6853<?php
6954comfortjobapp_delete_application( $application_id );
7055```
7156
72- ### 5 . Delete a Form
57+ ### 4 . Delete a Form
7358
7459``` php
75- // Delete a form by ID (ComfortJobApp)
60+ // Delete a form by ID
7661$result = comfortjobapp_delete_form($form_id);
7762```
7863
@@ -81,7 +66,7 @@ $result = comfortjobapp_delete_form($form_id);
8166### 1. Add Employer Dashboard Menu
8267Add a custom menu to the employer dashboard.
8368
84- ```
69+ ``` php
8570<?php
8671add_filter( 'comfortjobapp_employer_dashboard_menus', function( $menus ) {
8772 $menus['custom_menu'] = [
@@ -100,34 +85,18 @@ function custom_menu_callback() {
10085### 2. Filter Application Steps
10186Modify the application steps for the job application process.
10287
103- ```
88+ ``` php
10489<?php
10590add_filter( 'comfortjobapp_steps', function( $steps ) {
10691 $steps['custom_step'] = esc_html__( 'Custom Step', 'comfortjobapppro' );
10792 return $steps;
10893} );
10994```
11095
111- ### 3. Custom Email Notification
112- Customize the email notification sent to applicants.
113-
114- ```
115- <?php
116- add_filter( 'comfortjobapp_email_template', function( $template, $application ) {
117- $template['subject'] = esc_html__( 'Thank you for applying!', 'comfortjobapppro' );
118- $template['body'] = sprintf(
119- esc_html__( 'Dear %s, thank you for applying for the %s position.', 'comfortjobapppro' ),
120- $application['candidate_name'],
121- $application['job_title']
122- );
123- return $template;
124- }, 10, 2 );
125- ```
126-
127- ### 4. Export Application Data
96+ ### 3. Export Application Data
12897Export application data in JSON format.
12998
130- ```
99+ ``` php
131100<?php
132101add_action( 'admin_post_export_applications', function() {
133102 $applications = ComfortJobApp::query()->get()->toArray();
0 commit comments