wpseek.com
WordPress开发者和主题制作者的搜索引擎



options_permalink_add_js › WordPress Function

Since3.5.0
已弃用4.9.0
options_permalink_add_js ( 没有参数 )
定义在:
文档:

Display JavaScript on the page.



源码

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
}