|
| 1 | +--- |
| 2 | +title: "Comfort Job Application Documentation" |
| 3 | +description: "Documentation for Comfort Job Application" |
| 4 | +keywords: "Comfort Job Application index keywords." |
| 5 | +url: "/comfortjobapp/user-guide/general" |
| 6 | +type: "type" |
| 7 | +site_name: "Comfort HRM" |
| 8 | +image: "https://comforthrm.com/assets/images/seo.png" |
| 9 | +card: "article" |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +# Comfort Job Application User Guide |
| 14 | + |
| 15 | +ComfortJobApp simplifies the job application process for candidates and recruiters. Manage applications efficiently with this plugin. |
| 16 | + |
| 17 | +## File Structure |
| 18 | + |
| 19 | +``` |
| 20 | +resume/ |
| 21 | +├── assets/ |
| 22 | +│ ├── css/ |
| 23 | +│ ├── js/ |
| 24 | +│ ├── vendors/ |
| 25 | +├── includes/ |
| 26 | +│ ├── Api/ |
| 27 | +│ ├── Controllers/ |
| 28 | +│ ├── Helpers/ |
| 29 | +│ ├── Models/ |
| 30 | +│ ├── ComfortJobApp.php |
| 31 | +│ ├── ComfortJobAppAdmin.php |
| 32 | +│ ├── ComfortJobAppHooks.php |
| 33 | +│ ├── ComfortJobAppPublic.php |
| 34 | +│ └── ComfortJobAppUninstall.php |
| 35 | +├── templates/ |
| 36 | +│ ├── admin/ |
| 37 | +│ ├── emails/ |
| 38 | +│ ├── form-fields/ |
| 39 | +├── comfortjobapp.php |
| 40 | +└── readme.txt |
| 41 | +``` |
| 42 | +## Key Files and Directories |
| 43 | + |
| 44 | +- **assets/**: Contains CSS, JavaScript, and vendor files. |
| 45 | +- **includes/**: Contains core PHP files for the plugin, including API routes, controllers, helpers, models, and main plugin classes. |
| 46 | +- **templates/**: Contains template files for the plugin's frontend and admin views. |
| 47 | +- **comfortjobapp.php**: The main plugin file that initializes the plugin. |
| 48 | + |
| 49 | +### ComfortJobApp |
| 50 | + |
| 51 | +The main class for the plugin, located in `wp-content/plugins/comfortjobapp/includes/ComfortJobApp.php`. |
| 52 | + |
| 53 | +```php |
| 54 | +class ComfortJobApp { |
| 55 | + public static function instance() { |
| 56 | + // Returns the main instance of ComfortJobApp. |
| 57 | + } |
| 58 | + |
| 59 | + public function __construct() { |
| 60 | + // Constructor method. |
| 61 | + } |
| 62 | + |
| 63 | + private function include_files() { |
| 64 | + // Includes necessary files. |
| 65 | + } |
| 66 | +} |
| 67 | +``` |
| 68 | +### ComfortJobAppAdmin |
| 69 | +Handles the admin functionalities of the plugin, located in `ComfortJobAppAdmin.php`. |
| 70 | + |
| 71 | +``` |
| 72 | +<?php |
| 73 | +class ComfortJobAppAdmin { |
| 74 | + public function create_menus() { |
| 75 | + // Creates admin menus. |
| 76 | + } |
| 77 | +
|
| 78 | + public function display_resume_listing_page() { |
| 79 | + // Displays the resume listing page. |
| 80 | + } |
| 81 | +} |
| 82 | +``` |
| 83 | +### ComfortJobAppPublic |
| 84 | +Handles the public-facing functionalities of the plugin, located in `ComfortJobAppPublic.php`. |
| 85 | + |
| 86 | +``` |
| 87 | +<?php |
| 88 | +class ComfortJobAppPublic { |
| 89 | + public function enqueue_scripts() { |
| 90 | + // Enqueues public scripts and styles. |
| 91 | + } |
| 92 | +} |
| 93 | +``` |
| 94 | + |
| 95 | +## Uninstallation |
| 96 | + |
| 97 | +The uninstallation script is located in ComfortJobAppUninstall.php. |
| 98 | + |
| 99 | +``` |
| 100 | +<?php |
| 101 | +ComfortJobAppUninstall::uninstall(); |
| 102 | +``` |
0 commit comments