What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-19 12:15:01
How to disable Gutenberg / block editor for certain post types
add_filter( 'use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2 ); function prefix_disable_gutenberg( $current_status, $post_type ) { // Use your post type key instead of 'page or post' if ( in_array( $post_type, array( 'page', 'post... Add solution -
Java 2022-02-19 05:40:02
alert dialoge disappears in android after next page call
public void OnClickNearMe(View view) { LocationManager locManager = (LocationManager) getSystemService(LOCATION_SERVICE); if (!locManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){ createGpsDisabledAlert(); } else { ... Add solution -
Html 2022-02-18 19:15:01
placeholder select html
<!DOCTYPE html> <head> </head> <body> <select name="food"> <!-- The following line makes a placeholder --> <option value="" disabled selected hidden>select food</option> <... Add solution -
Other 2022-02-16 16:50:11
Disable LAN proxy
DISABLE LAN PROXY SETTINGS Press Windows Key + R. Type inetcpl. cpl into the Run window. Click OK. Click the Connections tab. Select Never dial a connection (if available). Click LAN settings. Uncheck Use a proxy server for your LAN. ... Click OK. Add solution -
Javascript 2022-02-16 15:45:16
express remove x-powered-by
app.disable('x-powered-by'); Add solution -
Shell/Bash 2022-02-16 11:30:12
debian 9 enable rc.local
cat <<EOF >/etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable ... Add solution -
Java 2022-02-16 00:35:25
how to ask user for his location in android
public class MainActivity extends AppCompatActivity { //'LocationManager' manages location tracking /*'LocationListener' gives us updates about whenever the device moves, it gives us updates on all those */ LocationManager locationManager; ... Add solution