How to Better Control WordPress Cron Jobs?

To disable WordPress Cron Jobs, place this in wp-config.php: define(‘DISABLE_WP_CRON’, true); To schedule a cron job in Linux with cPanel for example… This is the command you might run: wget -q -O – http://www.your-domain.org/wp-cron.php?doing_wp_cron >/dev/null 2>&1 The end of the above command just suppresses any output. Just pick the interval of your choice for setting … Read more

html lang=”” instead of lang=”en-us” – why?

You can apply the language_attributes filter to language_attributes() function (source). Basically you can do this by adding something like this to your functions.php: add_filter(‘language_attributes’, ‘custom_lang_attr’); function custom_lang_attr() { return ‘lang=”en-US”‘; } Note: Keep in mind, that you’re overwriting the language parameter; the original string (see @param) is a space-separated list of language attributes.

Enable Full SSL for WordPress

I had the same problem and solved it by moving the two define statements up before the require_once that includes wp-settings.php. Seems this was the issue all along. Source: https://stackoverflow.com/a/27193576/117268

Site broken after using URL Change in Admin

Best way If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor … Read more

Multisite Network menu links not updating

Pat J’s answer is correct but left out one important step. In wp-config.php the DOMAIN_CURRENT_SITE constant must be updated or the behavior that brandozz explains will occur. When updating domains for a WordPress Multisite: Update the DOMAIN_CURRENT_SITE constant in wp-config.php define(‘DOMAIN_CURRENT_SITE’, ‘my-domain-name.com’); In DB table named “wp_sitemeta” update “siteurl” meta key In DB tables named … Read more

enable SFTP via SSH keys in wordpress

For connection through ssh, you have to specify the ssh user using FTP_USER define( ‘FS_METHOD’, ‘ssh’ ); define( ‘FTP_BASE’, ‘/home/user/wordpress’ ); define( ‘FTP_PUBKEY’, ‘/home/user/.ssh/id_rsa.pub’ ); define( ‘FTP_PRIKEY’, ‘/home/user/.ssh/id_rsa’ ); define( ‘FTP_USER’, ‘user’ ); define( ‘FTP_HOST’, ‘localhost:22’ ); I think you also need to define FTP_BASE. You also need to enable ssh upgrade access. From the … Read more

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