Background Music WP [closed]

I would do your best to talk them out of it. https://moz.com/blog/how-to-convince-a-client-their-site-doesnt-need-music If all else fails <audio src=”https://wordpress.stackexchange.com/questions/318546/horse.ogg” controls> Your browser does not support the audio element. </audio> https://www.w3schools.com/tags/att_audio_src.asp

Remove CSS & JS from

Sounds like some filter is placing the create.css file there. Check your functions.php (or search for the following function inside the theme with your text editor in case some other file is enqueueing those assets) for wp_enqueue_style and see if you have that file enqueued. Other way of doing this is using the filter wp_head, … Read more

javascript ajax and nonce

Okay, so I found a working solution which is as simple as I thought the whole process should be. The confusing WordPress codex made things harder really. The creation and naming of the nonce is as simple as: wp_create_nonce( ‘example’ ); This is passed though AJAX and localisation of the script to the PHP. Then … Read more

How to disable drag-and-drop upload function in Media Library?

Instead of removing upload script you can make the upload error out if the user does not have admin privileges. Like this- function tomjn_only_upload_for_admin( $file ) { if ( ! current_user_can( ‘manage_options’ ) ) { $file[‘error’] = ‘You can\’t upload images without admin privileges!’; } return $file; } add_filter( ‘wp_handle_upload_prefilter’, ‘tomjn_only_upload_for_admin’ ); For other possible … Read more