WordPress at Your Fingertips
function is not described

options_permalink_add_js() WP 3.5.0

Deprecated from version 4.9.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Display JavaScript on the page.

No Hooks.

Return

null. Nothing.

Usage

options_permalink_add_js();

Changelog

Since 3.5.0 Introduced.
Deprecated 4.9.0

Code of options_permalink_add_js() WP 5.8.2

<?php
function options_permalink_add_js() {
	?>
	<script type="text/javascript">
		jQuery(document).ready(function() {
			jQuery('.permalink-structure input:radio').change(function() {
				if ( 'custom' == this.value )
					return;
				jQuery('#permalink_structure').val( this.value );
			});
			jQuery( '#permalink_structure' ).on( 'click input', function() {
				jQuery( '#custom_selection' ).prop( 'checked', true );
			});
		});
	</script>
	<?php
}