feat(01-02): register job_offer CPT with ownership-enforced capabilities
- Register job_offer custom post type with German labels - Custom capability_type 'job_offer' prevents access to regular posts - map_meta_cap filter enforces per-post ownership - Elementor support via show_in_rest - Menu icon: dashicons-businessperson at position 5 - Supports: title, editor, author, thumbnail - Archive slug: jobangebote - Custom capabilities prevent providers from editing others' posts Tasks completed: - Task 1: Register job_offer custom post type - Task 2: Add capability mapping filter for ownership enforcement Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@ define( 'DDHH_JM_PLUGIN_FILE', __FILE__ );
|
||||
// Include core classes.
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-activator.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-deactivator.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-post-types.php';
|
||||
require_once DDHH_JM_PLUGIN_DIR . 'includes/class-ddhh-job-manager.php';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user