To perform the requested action, WordPress needs to access your web server

if you want to skip this popup on the every action (like plugin or theme activation) you can go to wp-config.php file and paste the code define(‘FS_METHOD’,’direct’); define(“FTP_HOST”, “<server>”);//for eg.localhost define(“FTP_USER”, “<wordpress admin username>”); define(“FTP_PASS”, “<wordpress admin password>”); It works for me please try.

if get_post_meta do something

If you mean you don’t want the <div class=”phone-num”> to appear at all, here’s how: <?php $phone_number = get_post_meta(get_the_ID(), ‘_custom_product_number_field’, true ); if ( ! empty( $phone_number ) ) : ?> <div class=”phone-num”> Phone: <?php echo $phone_number; ?> </div> <?php endif; ?>

Use inline callable for hooks and filters

When developing a WordPress Plugin that uses custom do_action and apply_filters it’s always better to use a callback function. They don’t explicitly say that you aren’t allowed to use anonymous functions but whenever you can, and when it’s appropriate, use a callback. From the plugin development docs about actions Create a callback function First, create … Read more

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