misma contraseña aleatoria en dos funciones distintas wordpress

tengo en wordpress dos funciones distintas, las cuales modifica la contraseña y añade una nueva.

function changePassword($pass) {
    $password = bin2hex(random_bytes(6));
        return $password;
}
add_filter('random_password', 'changePassword');

Y uso otra funcion parecida a la anterior por la cual añado la contraseña aleatoria en una base de datos de usuarios externa, el problema está en que cada función está generando distintas contraseñas aleatorias.
¿ como podría añadir la misma contraseña aleatoria en funciones dinstintas?

gracias!

How do I speed up a WordPress website?

How do I speed up a WordPress website?

What is the best WordPress plugin for increasing page speed?

What is the best WordPress plugin for increasing page speed?

.

What is the best WordPress plugin for increasing page speed?

What is the best WordPress plugin for increasing page speed?

How do i move from Blogger to WordPress without Loosing SEO?

How do i move from Blogger to WordPress without Loosing SEO?

wp query – custom post-type not pulling posts in wordpress

I have a function in php as shown below in which I want to pull posts in wordpress with the post_type hello-world.

function area_search( $abc ) {
        if ( $abc ) {
            $query = new WP_Query( (
                's'           => $abc,
                'post_type'   => 'hello-world',
                'post_status' => 'publish',
            ) );
        } else {
            $query = new WP_Query( (
                'post_type'   => 'hello-world',
                'post_status' => 'publish',
                'ep_integrate' => true,
                'orderby' => 'title',
                'order'   => 'ASC',
            ) );
        }
        $result = array_map( __NAMESPACE__ . 'abc_xyz', $query->posts );
        echo '<pre>'; print_r($result); echo '</pre>'; // Line A
        return group( $result );
    }

function abc_xyz( $post ) {
    return $post->post_meta;
}

Here $abc is the keyword which user’s enter in the Search Posts section of the wordpress in the hello-world post-type.

I’ve added Line A in the function but unfortunately its printing an empty array:

Array
(
    (0) => 
    (1) => 
    (2) => 
    (3) => 
    (4) => 
    (5) => 
    (6) => 
    (7) => 
    (8) => 
)

Problem Statement:

The above code works perfectly fine in production environment in comparison to development environment.

I am wondering what changes I should make in the wordpress because the code works perfectly fine in production so I believe there is an issue
in wordpress not in the code above.

database – How to fix Uploaded to this post option to see group of images uploaded to a post in WordPress?

I’m transferring a site using the WordPress importer and Exporter settings. First, I downloaded the Posts content and the Media content, so I have two xml files.
After importing in the new site, I noticed that inside a posts, in the Add media section, when I select the “Uploaded to this post” option no images are listed. The media library shows all the images, and add media I’m also to see all the images.

Does anyone know what database content I need transfer to see the group of images uploaded to a particular post using the “Uploaded to this post” option?

Thanks,

wordpress – General questions relating to deployment of website and plugins ( important )

let’s suppose you have a application with database and google authentication client id and password in your config.env file how would you push that app on GitHub for deploying it later on with netlify also hiding your environment variables containing your mongoURI ( just an example ) in your github repository how would you deploy that app safely while hiding the important stuff ?

also how could I add plugins In my website I have seen it’s simple with WordPress you just have t o install it but how can I add them in my own custom made website ?

WordPress SEO(Media files & PDFs is not appearing in google search)

I want to make a seo of the wordpress website,so that when i type the name of the article in google it should appear in the google search.

For example when i search in google for Accidental injection of dental burs during dental extraction.

it should appear in google as shown in the below picture which is marked.

enter image description here

enter image description here

please help me out how to do it in wordpress

the result in the google is the pdf file with the searched name which is appearing from wp-content/uploads.

Thanks in advance