export_add_js

Advertisement

Summery Summery

Display JavaScript on the page.

Syntax Syntax

export_add_js()

Source Source

File: wp-admin/export.php

function export_add_js() {
	?>
<script type="text/javascript">
	jQuery(document).ready(function($){
		var form = $('#export-filters'),
			filters = form.find('.export-filters');
		filters.hide();
		form.find('input:radio').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
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.