WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
900 |
|
901 | <?php if ( $flash ) : ?> |
902 | <script type="text/javascript"> |
903 | <!-- |
904 | jQuery(function($){ |
905 | swfu = new SWFUpload({ |
906 | upload_url : "<?php echo attribute_escape( $flash_action_url ); ?>", |
907 | flash_url : "<?php echo includes_url('js/swfupload/swfupload_f9.swf'); ?>", |
908 | file_post_name: "async-upload", |
909 | file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>", |
910 | post_params : { |
911 | "post_id" : "<?php echo $post_id; ?>", |
912 | "auth_cookie" : "<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>", |
913 | "_wpnonce" : "<?php echo wp_create_nonce('media-form'); ?>", |
914 | "type" : "<?php echo $type; ?>", |
915 | "tab" : "<?php echo $tab; ?>", |
916 | "short" : "1" |
917 | }, |
918 | file_size_limit : "<?php echo wp_max_upload_size(); ?>b", |