How to put post title or keyphrase in content on different places automatically?

You can search-replace those placeholders with the_content filter. function custom_the_content( $content ) { return str_replace(‘{placeholder}’, get_the_title(), $content); } add_filter(‘the_content’, ‘custom_the_content’); Note: I don’t recommend using *** or similar as a placeholder, as it can be commonly used. That is why I’ve used {placeholder}. UPDATE: Based on the comments below, if you need to search-replace multiple … Read more

How to automate SSH login with password?

Don’t use a password. Generate a passphrase-less SSH key and push it to your VM. If you already have an SSH key, you can skip this step… Just hit Enter for the key and both passphrases: $ ssh-keygen -t rsa -b 2048 Generating public/private rsa key pair. Enter file in which to save the key … Read more

Activate and deactivate plugin automatically

I like the idea of running this through a schedule event in WordPress, https://codex.wordpress.org/Function_Reference/wp_schedule_event Here is a snippet that hopefully will get you there: <?php if(!wp_next_scheduled(‘daily_plugin_check’)){ wp_schedule_event( time(), ‘daily’, ‘daily_plugin_check’ ); } add_action( ‘daily_plugin_check’, ‘toggle_plugins’ ); function toggle_plugins() { switch(date(‘D’)){ case ‘Mon’ : case ‘Wed’ : case ‘Fri’ : // Could be an array or … Read more

Automatically email daily archive

I do not think this is built into WordPress currently. This would probably need to be custom-built. It would be some php code that is attached to a cron job. Set the cron job to run every day, and have your php script email out the page. These resources may help: http://ss64.com/osx/crontab.html (via https://stackoverflow.com/questions/5256429/how-to-use-crontab-for-sending-weekly-email-in-php)

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