<?php
namespace NeoDuplicateFull\NeoTutorial; if (!defined("ABSPATH")) { die("neoWP direct access not allowed"); }






\NeoDuplicateFull\NeoGlobal\add_action_hook("current_screen", function () { \NeoDuplicateFull\NeoGlobal\enqueue_js_variable_backend("neoTutorialArrowHiddenSelectors", \NeoDuplicateFull\NeoGlobal\option__neo_tutorial__hidden_selectors()); });


\NeoDuplicateFull\NeoGlobal\register_rest_endpoint("/wp-json/neo/tutorial-hide-arrow", "POST", fn () => \NeoDuplicateFull\NeoGlobal\current_user_can__neo_tutorial_hide_arrow(), function ($get_param) {
    $hidden_selectors = \NeoDuplicateFull\NeoGlobal\option__neo_tutorial__hidden_selectors(); $hidden_selectors[]= $get_param("dom-selector"); $hidden_selectors = \NeoDuplicateFull\NeoGlobal\array_unique_better($hidden_selectors);
    \NeoDuplicateFull\NeoGlobal\option__neo_tutorial__hidden_selectors($hidden_selectors);
    return "OKAY";
});


\NeoDuplicateFull\NeoGlobal\add_action_hook("neo_init", function () {
    \NeoDuplicateFull\NeoGlobal\call_interface_func_implemented('\NeoDuplicateFull\NeoReset\interface_register_neo_reset_action_20260410')(
        id: "neo-tutorial--reset", button_text: \NeoDuplicateFull\NeoGlobal\neo__("Reset tutorial hints", "Tutorial-Hinweise zurücksetzen"), confirm_title: \NeoDuplicateFull\NeoGlobal\neo__("Reset tutorial hints?", "Tutorial-Hinweise zurücksetzen?"), confirm_text: \NeoDuplicateFull\NeoGlobal\neo__("This will reset all tutorial hints. Are you sure?", "Dies wird alle Tutorial-Hinweise zurücksetzen. Sind Sie sicher?"),
        action_callback: fn () => \NeoDuplicateFull\NeoGlobal\option__neo_tutorial__hidden_selectors(delete: true),
    );
});
