feat: register custom Elementor dynamic tags for job offer fields
Adds a "Stellenangebot" group to Elementor's dynamic tags dropdown with tags for Standort, Art, Bewerbungsfrist, Kontakt-E-Mail (text), and Logo (image). This removes the dependency on Elementor Pro's ACF module for displaying job offer fields in templates and loop items. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,7 @@ require_once DDHH_JM_PLUGIN_DIR . 'includes/class-template.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-admin-ui.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-user-preferences.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-scheduler.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-elementor-tags.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-ddhh-job-manager.php';
|
||||
|
||||
// Register activation and deactivation hooks (must be at top level).
|
||||
@@ -58,3 +59,11 @@ function ddhh_jm_init() {
|
||||
DDHH_JM_Job_Manager::get_instance();
|
||||
}
|
||||
add_action( 'plugins_loaded', 'ddhh_jm_init', 10 );
|
||||
|
||||
/**
|
||||
* Initialize Elementor dynamic tags when Elementor is loaded.
|
||||
*/
|
||||
function ddhh_jm_elementor_init() {
|
||||
DDHH_JM_Elementor_Tags::init();
|
||||
}
|
||||
add_action( 'elementor/init', 'ddhh_jm_elementor_init' );
|
||||
|
||||
Reference in New Issue
Block a user