Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tagging uploaded files
#3
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):

Code:
# activate filter
add_action('file-extras','hello_world');

# functions
function hello_world() {
    echo '<tr><td>'.$upload['name'].'</td></tr>';
}
-- Sam
Reply


Messages In This Thread
Tagging uploaded files - by SamWM - 2010-05-14, 21:30:36
Tagging uploaded files - by Zegnåt - 2010-05-14, 21:47:48
Tagging uploaded files - by SamWM - 2010-05-14, 22:18:47
Tagging uploaded files - by Zegnåt - 2010-05-14, 22:32:58
Tagging uploaded files - by SamWM - 2010-05-15, 02:46:32
Tagging uploaded files - by SamWM - 2010-05-18, 22:42:29
Tagging uploaded files - by SamWM - 2010-05-19, 01:08:29
Tagging uploaded files - by SamWM - 2010-05-25, 19:40:06
Tagging uploaded files - by SamWM - 2010-05-25, 19:42:45



Users browsing this thread: 1 Guest(s)