Disable title block on edit screen for a custom post type

I have a custom post type with a custom block to collect required data and store it in post meta data or standard fields like title or slug, so I don’t want to display the Title block. I can’t disable title support in the CPT, because too much else depends on it.

The only successful attempt so far has been using CSS to target the id "post-title-0" of the for the title and can clearly enqueue a small CSS file depending on the post type, but I don’t want to depend on something set by WordPress that I can’t control; it feels that something in Javascript would be a better way to go if possible. I was wondering if WP provde any hooks for this but haven’t found any.

I’m a javascript novice, having started learning it in the last few weeks in order to write some custom blocks, so am not clear on the extent of what can be acheived with it. (I have 50 years experience of programming, just not in JS).

It would be OK to only hide the title until the post has been saved.

Has anyone any ideas?

How to disable mongodb cache

I am performing some calculations on datasets and adding some new information to each collection row. I have over 8 billion records in the database.

I do not need the cache as I am only going to traverse all rows and update them. MongoDB is caching data in memory. There is a way to make it memory-optimized. Is it possible to disable cache or clear it as soon as I have done processing? I have a 64 GB computer, it’s taking more than 25 GB of memory.

Disable or remove custom option plugin through functions.php

How can I disable or remove a custom plugin’s option through functions.php?

The plugin’s option looks like this:

$  customoption = lisfinity_get_option('membership-phone'); 

I can call this with echo in every page and appears, but I want to remove this option through functions.php with a Woocommerce condition. How can I do that? I attached my bad code for example. My code works and display echo, but can’t disable option. This is my woocommerce conditional code:

        function has_bought_items() {                    $  bought = false;       $  prod_arr = array( '2881', '2887' );       $  customer_orders = get_posts( array(         'numberposts' => -1,         'meta_key'    => '_customer_user',         'meta_value'  => get_current_user_id(),         'post_type'   => 'shop_order',          'post_status' => 'wc-completed'     ) );     foreach ( $  customer_orders as $  customer_order ) {             $  order_id = method_exists( $  order, 'get_id' ) ? $  order->get_id() : $  order->id;         $  order = wc_get_order( $  customer_order );                  foreach ($  order->get_items() as $  item) {                         if ( version_compare( WC_VERSION, '3.0', '<' ) )                  $  product_id = $  item['product_id'];             else                 $  product_id = $  item->get_product_id();                           if ( in_array( $  product_id, $  prod_arr ) )                  $  bought = true;         }     }               return $  bought;         }              if ( has_bought_items() ) {   $  customoption = lisfinity_get_option('membership-phone'); delete_option($  customoption');    }   else {     echo 'dasd';  }       }   add_action( 'wp_head', 'my_custom_function' );    

Disable password policy for partially-contained database SQL Server

I’m stuck in a situation where I need to create a new user for a partially-contained database (SQL Server 2016). The password is short, so I get an error:

Password validation failed. The password does not meet Windows policy requirements because it is too short. 

When creating a login at the instance level, there is an option to untick ‘Enforce password policy’, ‘Enforce password expiration’, and ‘User must change password at next login’. There is no such option when creating a user for a partially-contained DB.

Is there a way to get around this?

Thanks

Disable custom taxonomy by name in function

I need delete some custom taxonomy with function. Users creates new taxonomies, but when user create any disabled taxonomy (for example named "custom_taxonomy1") so WP remove it with function (so blacklist for specific taxonomy name).

How can I delete with something like this:

If post type "custom_post_type" – do remove taxonomy with name array "custom_taxonomy1", "custom_taxonomy2"...

or with wp_remove_object_term() function

or I find this, but how achieve it:

function wpse_296972_pre_delete_term( $  term_id, $  taxonomy_name ) {     if ( $  taxonomy_name === 'organization' ) {         $  objects = get_objects_in_term( $  term_id, $  taxonomy );          // delete here .     } } add_action( 'pre_delete_term', 'wpse_296972_pre_delete_term' ); 

How to Disable sameorigin from a bitnami + WordPress + NGINX stack

I need to disable SAMEORIGIN x-frame feature, https://take.ms/ZDL042 how can I achieve this?

I read that if I add Header always unset X-Frame-Options to my .htaccess it would prevent the header, but i dont have .htaccess file. I tried modifing the nginx conf file but it still didn’t work, I want to use iframe from other websites to display content from my site. any ideas?

Disable auditing of select statements

Somehow the auditing of select statements was enabled in our oracle database. We have several data processing apps that are generating upwards of 15 GB per day in the audit trail. Now we cannot turn it off because it seems that the noaudit command needs to match the original audit command, which of course no one knows. Does anyone know how to undo this? Can we turn off all auditing and then turn on the usual assortment of audit actions (alter, create, drop, etc.)? We have ran all kinds of noaduit permutations: “noaudit select table by USER;” and “noaudit select any table;” and yet it still posts select statements to the audit trail.

How to preselect and disable specific checkboxes using js/jquery? [closed]

I have checkboxes with randomly generated ids on every page view and want to preselect and disable some of them, so they can not get unchecked anymore.

With a simple script which looks after value="" I’m able to achieve the preselection but if I try to disable it at the same time, it disables all input fields on the page.

I think it is smarter to get the randomly generated ids of the specific checkboxes using my method mentioned above and then put them in a function. But this is where I fail!

What would be your solution if we had this and couldn’t select by id:

<input type="checkbox" id"?" value="check1"> <input type="checkbox" id"?" value="check2"> <input type="checkbox" id"?" value="check3"> 

I would appreciate any help.