Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

You can hide them using CSS. Add this to the theme’s functions.php file, or add a plug-in header to the top of the file and zip it up to use as a plug-in: <?php add_action(‘admin_print_styles’, ‘remove_this_stuff’); function remove_this_stuff() { ?> <style> #misc-publishing-actions, #minor-publishing-actions { display:none; } </style> <?php } ?>

Skewed / slanted button within elementor [closed]

What you need is to select Elementor buttons and add a simple custom CSS. Basically what you need to do is to skew the button with the negative value, and then skew the inner text element with the positive value. a.elementor-button { color: #fff; background: #000; border: 2px solid #000; font-weight: 700; text-align: center; text-decoration: … Read more

adding a button to the media uploader

When i needed to do something similar i used the admin_print_scripts-media-upload-popup hook to add my own js/Jquery code to insert a button and handled it’s click event with ajax. something like this: add_action(‘admin_print_scripts-media-upload-popup’,’add_my_media_button’); function add_my_media_button(){ ?> <script> jQuery(document).ready(function() { //loop over all attachments jQuery(“.savesend”).each(function(i,v){ if (jQuery(this).next().attr(‘id’) != “”){ //get attachment id var att_id = jQuery(this).next().attr(‘id’); … Read more

Add Ajax to rating button

I’ll only outline how to do it since there are plenty of answers on this site that address how AJAX works in WordPress. Just check out the ajax tag. Yes, you’ll need some javascript to watch for when the button is clicked. When it is, you send a custom action, say ‘myaction’, and the post … Read more