Description
The “fun_attachment_submitbox” filter is used to modify the image attach links.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'fun_attachment_submitbox', 'filter_function_name'); ?>
The hook is located in the file-un-attach/_inc/admin.php file.
Example
// Apply filter function change_fun_attachment_submitbox( $links, $post ) { return $links . ' <a href="#" id="custom-link-' . esc_attr( $postid ) . '">' . __( 'My link') . '</a>'; } add_filter('fun_attachment_submitbox', 'change_fun_attachment_submitbox');
Note: $link is a HTML string, $post is an object or boolean value.
Leave a Reply