Hi guys,
wie used this code in the past and everything works fine, now i do not get the option do create any screenshot :-(
function enqueuefeaturebasewidget() { // Ausführen nur, wenn der aktuelle Benutzer Administrator ist if ( ! currentusercan( 'administrator' ) ) { return; } // Benutzerinformationen abrufen $useremail = isuserloggedin() ? wpgetcurrentuser()->useremail : 'guest@example.com [guest@example.com]'; $username = isuserloggedin() ? wpgetcurrentuser()->displayname : 'Guest'; $secretkey = "ivaba3d63b-c4de-4d7e-9357-23b92edd4e0b"; // Sicherer geheimer Schlüssel $userhash = hashhmac('sha256', $useremail, $secretkey); // Hash generieren // Ausgabe für das Widget addaction( 'wpfooter', function () use ( $useremail, $username, $user_hash ) { ?>
<?php }); } addaction('wpenqueuescripts', 'enqueuefeaturebase_widget');
Please authenticate to join the conversation.
In Review
Feedback & Roadmaps
11 months ago
Linear
Get notified by email when there are changes.
In Review
Feedback & Roadmaps
11 months ago
Linear
Get notified by email when there are changes.