2010-05-14, 22:18:47
What is the purpose of the page_type parameter in register_plugin? It does not seem to matter what I put in there.
Also noticed it is file-extras not files-extras (as in documentation) and the code is run before the closing </table> tag. So would have to echo a new row rather that add to the existing row (if valid markup is to be generated).
I am not sure how you can get the current file though, as the following results in an Undefined variable error (which reduces the value of the hook):
Also noticed it is file-extras not files-extras (as in documentation) and the code is run before the closing </table> tag. So would have to echo a new row rather that add to the existing row (if valid markup is to be generated).
I am not sure how you can get the current file though, as the following results in an Undefined variable error (which reduces the value of the hook):
Code:
# activate filter
add_action('file-extras','hello_world');
# functions
function hello_world() {
echo '<tr><td>'.$upload['name'].'</td></tr>';
}
-- Sam