New answers tagged

0

i have found this code: define('my_revisions_amount', 1); // let keep only one revision define('my_autosave_interval', 600); // 600 minutes is enough if (IS_ADMINN){ add_filter( 'wp_revisions_to_keep', function(){return my_revisions_amount;} ); add_filter( 'wp_print_scripts', function(){wp_localize_script( 'autosave', 'autosaveL10n', ...


-2

use below example <script type="text/javascript"> $( "#target" ).blur(function() { //Save shortcode value in a variable var msg= <?php echo do_shortcode('[my_short_code_here]'); ?> alert( msg ); }); </script>



Top 50 recent answers are included