How to customize this automatic slug shortener with an overrwrite function
This is just a first idea: Check if it is the AJAX request. if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) return $slug; or: if ( isset( $_POST[‘action’] ) && ‘sample-permalink’ === $_POST[‘action’] ) return $slug; depending on the level of detail you need. If you put this in the beginning of the function (maybe … Read more