wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
options_permalink_add_js is deprecated since version 4.9.0!
options_permalink_add_js › WordPress Function
Od3.5.0
Przestarzały4.9.0
› options_permalink_add_js ( Brak parametrów )
Zdefiniowane na: |
|
Codex: |
Display JavaScript on the page.
Powiązane Funkcje: options_general_add_js, options_reading_add_js, options_discussion_add_js, post_permalink, the_permalink_rss
Źródło
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 }