options_permalink_add_js()

In this article

This function has been deprecated.

Display JavaScript on the page.

Source

function options_permalink_add_js() {
	?>
	<script type="text/javascript">
		jQuery( 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
}

Changelog

VersionDescription
4.9.0This function has been deprecated.
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.