options_permalink_add_js

Advertisement

Deprecated Deprecated

This function has been deprecated.

Summery Summery

Display JavaScript on the page.

Syntax Syntax

options_permalink_add_js()

Source Source

File: wp-admin/includes/deprecated.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
}

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 This function has been deprecated.
3.5.0 Introduced.

Advertisement

Leave a Reply