Create Unique and Customized User ID for Website Members in WordPress
Create Unique and Customized User ID for Website Members in WordPress
Create Unique and Customized User ID for Website Members in WordPress
I found the solution, it was a really dumb error of mine : I forgot to gives to Nginx-Container the volume which contains the hardlink ! so, in Nginx container, the hardlink pointed to by the symlink didn’t existed indeed
It was achieved using two hooks. retrieve_password_notification_email retrieve_password_message function ashad_retrieve_password_notification_email($defaults) { $defaults[‘headers’] = array(‘Content-Type: text/html; charset=UTF-8’); return $defaults; } add_filter(‘retrieve_password_notification_email’, ‘ashad_retrieve_password_notification_email’, 10, 3); function ashad_reset_password_message($message, $key, $user_login, $user_data ) { $user_fullname = $user_data->user_firstname . ‘ ‘ . $user_data->user_last_name; $blog_name = get_bloginfo(‘name’); $reset_url = network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’); ob_start(); include(get_stylesheet_directory() . ‘/templates/mail/password-change.php’); $message = ob_get_clean(); return … Read more
I found the cause of the problem. It was shamefully simple. I was running that piece of code from a php file that actually is a custom template being used by the plugin I’m creating. This template file is not a required file by the plugin, instead I load the template in certain occasions if … Read more
Aight got it, the crucial missing thing was that you have to provide this part here: ‘type’ => ‘object’ twice; once when declaring the variable’s type, and once again when defining the possibilities. Otherwise, validation fails; so a proper example would be: ‘args’ => [ ‘data’ => [ ‘type’ => ‘object’, ‘oneOf’ => [ [ … Read more
A few parameters need tweaking in midstory_fade_animation_script_register(): function midstory_fade_animation_script_register() { // Handle, script location, dependecies, version, in footer boolean wp_enqueue_script( ‘midstory-animation-fade-block’, plugin_dir_url( __FILE__ ) . ‘/midstory_animation_fade.js’, array( ‘wp-blocks’, ‘wp-i18n’, ‘wp-editor’ ), ‘1.0.1’, false ); } The script location needs a slash between the plugin folder and the filename. What you were calling “WordPress refresh?” is … Read more
The WP_DISABLE_CRON constant only removes WP-Cron from loading on the page so it’s no longer triggered by site traffic. You can absolutely hit the wp-cron.php file directly to trigger it. I use https://cron-job.org to ping my private sites at https://dev.example.com/wp-cron.php?doing_wp_cron for example. This is actually recommended in the WordPress handbook: https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/ Editing to add: if … Read more
Gutenberg text field validation
WordPress custom link with my plugin
Must-use (mu) plugins are loaded during the version update process, unlike ordinary plugins. Explanation here. So it’s possible to hook dbdelta_queries and the related filters from within a mu plugin. (Thanks to Sergey Biryukov for the answer.) But, some plugins use the same dbDelta() function as core update, so it’s possible to get queries for … Read more