Delay a function, any function!

You could solve this via WP Cron using wp_schedule_single_event(). However, for this to properly work, you’d need to disable the standard cron (which is run by a user visiting the site) and instead use a proper cronjob/crontab. EasyEngine has a good tutorial on disabling wp-cron and using cronjob instead. An alternative would be solve this … Read more

display a div on ervery site but not frontpage?

You need to tell the PHP to echo the div. if (! is_front_page()) : echo ‘<div class=”button-kontakt”> <a href=”https://wordpress.stackexchange.com/kontakt”><p>ANFRAGE</p></a></div>’; endif; Unless you just want it on the top of the page, you need to add that code to a template file, not the functions file. If it is something that appears at the bottom of … Read more

How to add array [closed]

You don’t need array to do this. The following code will be worked. You have to just add other username also inside if condition with or operation. if (‘plugins.php’ === $pagenow ||’update-core.php’ === $pagenow ) { // wp_safe_redirect( home_url() ); // Now check the current user $user = wp_get_current_user(); if ( $user->user_login == ‘Remo’ || … Read more

More tag locked in Hemingway

WordPress has the functionality built-in natively. Try updating the read more tag in the Text editor. Examples: <!–more Episode Summary and Extras –> <!–more Regular Blog Post –> <!–more Read More About My Cats –> This only works with the_content(), but it sounds like your theme’s blog loop is using that.

functions php file [closed]

It sounds like the white screen of death probably has nothing to do with your functions.php file. I would first disable any and all caching (plugins, server-side, CDN, etc.) and dump full browser history to make sure you’re seeing the current version. Then to troubleshoot an issue like this, activate a different theme. If you … Read more