Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'get_field' ) ) {
- add_action( 'template_redirect', 'ssvp_template_redirect_warning_missing_plugins', 0 );
- function ssvp_template_redirect_warning_missing_plugins() {
- wp_die( sprintf( 'This theme can\'t work without ACF. <a href="%s">Please login to admin</a>, and activate it !', wp_login_url() ) );
- }
- global $wpdb;
- $wpdb->query("UPDATE {$wpdb->options} SET option_value = '' WHERE option_name = 'active_plugins';" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement