define('WP_POST_REVISIONS', false);
function disable_autosave() {
wp_deregister_script('autosave');
}
add_action('wp_print_scripts', 'disable_autosave');
Simple method
Related Posts:
- Disable autosave with `function.php` for custom post wordpress?
- How to get post revisions in my custom rest API? [closed]
- revision id is one number behind – publish_post
- Ajax call always returns 0
- plugins_url vs plugin_dir_url
- How to override a function when isn’t at functions.php
- Where and how to put inline js in pages
- contactform7 remove tags with “wpcf7_autop false” from functions.php
- How to count number of functions attached to an action hook?
- Show modified time if post is actually modified
- ajax live search for post title
- Hourly Routine Not Firing ( wp_schedule_event() )
- How to get an array of menu items from the toolbar?
- Fatal error: Call to undefined function add_action() – an untouched problem
- echo or print_r in an admin function
- Overriding methods in a child theme
- Automatically Add Specified Value to Attachment Metadata upon Upload
- WP disobeys disabling of the posts revision feature
- How do I deactivate a plugin for some roles
- Twenty Eleven Child theme error when attempting to use a rewritten function
- How to display more audio file ID3 tags in WordPress
- Running CRON on Server with WP Function
- is_dynamic_sidebar always returns true while using Jetpack visibility
- wp_trash_post function to only apply to posts, not pages!
- Adding widget to dashboard with wp_dashboard_setup not working
- qTranslate in functions.php
- Using Schema with `the_excerpt`
- Image rotation fails to regenerate custom sized thumbnail
- Register and load scripts
- Having a Function Inside of the Loop
- Display alert on successful user Sign Up
- Getting different functions data while using while loop in wordpress
- How to rewrite the custom url in wordpress?
- Add other social networks to TwentyNineteen_SVG_Icons class in child theme?
- Including a specific Javascript Script in a template. Is my code correct?
- Setting youtube size in functions.php
- Redirect to another page if the user is logged in when pressing again the login button on menu bar
- wp_get_archives custom function broken since upgrading to WP 3.7.1
- Accessing two databases wordpress
- Add a jQuery Function
- append to existing parent theme function
- Functions when woocommerce isn’t installed
- How to get correct value from checked()?
- While loop with an exception after a count is reached
- Return child theme url
- Redefine function arguments before rendering
- How do I change a parent theme’s function through the child theme?
- Enqueue script on every page except one
- Best way to handle lack of titles in microblogging
- Dropline menus — seperators between children only?
- Echoing function into WordPress NextGen gallery
- Functions php shortcode for displaying main menu with no child items
- Redirect to other page if login
- first paragraph of the_content as meta description
- get_terms (or tax_query) for term of current post?
- 404 when enqueue_script using plugin_url
- WP Customizer API loaded into functions.php
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- How to use get_posts() function in functions.php
- Redirect to post after publish or update a published post
- Page Template Won’t Load Correct CSS File
- the_widget() inside functions.php
- How Can I add a menu to the theme from withen the function.php file
- the_excerpt function not showing image
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- Use a filter for wp_robots to block CPT/feed/
- Trigger email alert if file downloaded
- Completely Disable WordPress RSS Feeds
- How to hide content on mobile in the functions.php file – woocommerce
- Load templates, pass arguments, and render output from functions.php
- Order column custom date using pre_get_posts
- query_vars treat as single var from URL
- Running javascript without hooking wp_head
- WordPress Lite/Light
- How to add HTML into error message
- Remove text after a dot and a colon in Woocommerce product title
- Selecting specific query for offset
- Is_Page doesnt detect my page
- Show image after X para – center aligned
- Problems adding a new field to product in cart
- Function for Sticky Post on Categories causes issues with 404 behavior
- what is `get_section()` and how to use it?
- function replace_text for entire page
- Get value of pre-populated Gravity forms field as variable in my function
- Only Show One Category Name Per Post
- Pass max posts to Javascript
- Changing the color of post title [closed]
- update_usermeta don’t work
- Create html from function
- WP supersize not displaying when different languages flags are selected
- wp_list_pages change of children and anchor of parent
- Admin Panel errors because of functions.php
- WordPress not performing direct update
- Using Output from one Function and calling it into another
- How to add a class and title attribute to the link generated by next/previous post
- “Headers already sent” while trying to add a CSS file to my login page?
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Bulk set Post Title as Tag where Tag is Empty Function
- Animated Accordion [closed]