diff --git a/bdp-kompass.php b/bdp-kompass.php index 94b618a..310b9ed 100644 --- a/bdp-kompass.php +++ b/bdp-kompass.php @@ -55,8 +55,8 @@ add_action('admin_menu', function () { }); -add_action('wp_ajax_kompass_show_ajax', 'kompass_load_ajax_content'); -add_action('wp_ajax_nopriv_kompass_show_ajax', 'kompass_load_ajax_content'); +add_action('wp_ajax_bdp_kompass_show_ajax', 'bdp_kompass_load_ajax_content'); +add_action('wp_ajax_nopriv_bdp_kompass_show_ajax', 'bdp_kompass_load_ajax_content'); function register_custom_theme_directory() { if (is_dir(ABSPATH . '/wp-content/themes/mareike-theme/')) { diff --git a/includes/setup.php b/includes/setup.php index 1832cc7..0e4f4c0 100644 --- a/includes/setup.php +++ b/includes/setup.php @@ -70,7 +70,7 @@ function kompass_get_age(string $birthday) : int { return $compare->y; } -function kompass_load_ajax_content() { +function bdp_kompass_load_ajax_content() { $class = 'Bdp\\Modules\\' . $_REQUEST['module'] . '\\Controllers\\AjaxRouterController'; if (!class_exists($class)) { wp_die('Invalid module call: Module=' . $_REQUEST['module']);