underdigital
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Recipe Maker] WPRM_courseMaking an application that connects to the RestAPI of wordpress, and using the data of the plugin to fetch some things ??
Forum: Plugins
In reply to: [WP Recipe Maker] WPRM_courseThe end result should be on this url that i have inside each course object a variable image with the image url.
https://****/wp-json/wp/v2/wprm_course/
(Demosite Json)- This reply was modified 3 years, 7 months ago by underdigital.
Forum: Plugins
In reply to: [WP Recipe Maker] WPRM_courseI think so,
Just want to pass the image url to the Rest API for courses.
Now you only have an id and name to work withSo you suggest to add this parame to the function?
- This reply was modified 3 years, 7 months ago by underdigital.
Forum: Plugins
In reply to: [External Login] PBKDF2Hash@tbenyon
My bad…
Seems like i had to change the 2 to a 3
add_filter('exlog_hook_filter_authenticate_hash', 'myExlogHashAuthenticator', 10, 2);
Forum: Plugins
In reply to: [External Login] PBKDF2Hash@tbenyon Good! You are awsome, sorry for the late response!
Still getting an error on it, (no php dev :-P)
Fatal error: Uncaught ArgumentCountError: Too few arguments to function myExlogHashAuthenticator(), 2 passed in D:\World of Eldritch\World of Eldritch Website\root\demo\wp-includes\class-wp-hook.php on line 290 and exactly 3 expected in D:\World of Eldritch\World of Eldritch Website\root\demo\wp-content\themes\twentytwenty\functions.php:686 Stack trace: #0 D:\World of Eldritch\World of Eldritch Website\root\demo\wp-includes\class-wp-hook.php(290)
Can’t get arround this one? I only passe this
myExlogHashAuthenticator($password, $hashFromDatabase, $username)Forum: Plugins
In reply to: [External Login] PBKDF2Hash+1 need this to..
function pbkdf2(string $username, string $password, string $passwordSalt) { $iterations = 10000; $length = 40; $salt = $passwordSalt . $username; $hash = hash_pbkdf2("sha1", $password, $salt, $iterations, $length); $hash = \strtoupper($hash); return $hash; }
- This reply was modified 5 years, 3 months ago by underdigital.