options_permalink_add_js()
最后更新于:2021-11-27 18:07:22
options_permalink_add_js()Display JavaScript on the page.
源文件
文件: gc-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
}