How can I rename roles in a WordPress multisite installation?

I have made minor changes which can help you in achieving your desired results. We need to use network_admin_menu hook instead of init and also updated the condition of checking if the roles exist. <?php function wpmudev_custom_change_role_names_multisite() { // Here we are getting the roles of the network. $wp_roles = get_site_option(‘wp_user_roles’); // Here we are … Read more

How can I access uploaded file submitted via Forminator? [closed]

We need to made few tweaks in code to make sure it is working fine. add_action( ‘forminator_custom_form_submit_before_save_entry’, ‘handle_forminator_file_upload’, 10, 3 ); function handle_forminator_file_upload( $entry, $form_id, $field_data_array ) { $target_form_id = 306; // Here we need to ensure that 306 is the correct form ID. if ( $form_id == $target_form_id ) { // Here we are … Read more

White Screen of Death on WordPress Website

This issue that you are facing, can come from several reasons. You can try this: 1- download the same WordPress version that you already have from official website, and replace it with your WordPress website manually (DO NOT replace wp-content directory). 2- Let’s put your correct data into your new wp-config.php file. 3- I face … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)