wpseek.com
A WordPress-centric search engine for devs and theme authors
export_add_js › WordPress Function
Since3.5.0
Deprecatedn/a
› export_add_js ( No parameters )
Defined at: |
|
Codex: |
Display JavaScript on the page.
Related Functions: export_wp, export_date_options, network_settings_add_js, delete_users_add_js, wp_oembed_add_host_js
Source
function export_add_js() { ?> <script type="text/javascript"> jQuery( function($) { var form = $('#export-filters'), filters = form.find('.export-filters'); filters.hide(); form.find('input:radio').on( 'change', function() { filters.slideUp('fast'); switch ( $(this).val() ) { case 'attachment': $('#attachment-filters').slideDown(); break; case 'posts': $('#post-filters').slideDown(); break; case 'pages': $('#page-filters').slideDown(); break; } }); } ); </script> <?php }