Skip to main content
added 2 characters in body; edited tags
Source Link
butlerblog
  • 5.2k
  • 3
  • 29
  • 44

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if actived_pluginactivated_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // up to here if you run .... // but // the hook below doesn't add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; } 

In conclusion, I want to print a text in the header or footer just after a plugin is activated

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if actived_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // up to here if you run .... // but // the hook below doesn't add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; } 

In conclusion, I want to print a text in the header or footer just after a plugin is activated

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if activated_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // up to here if you run .... // but // the hook below doesn't add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; } 

In conclusion, I want to print a text in the header or footer just after a plugin is activated

added 47 characters in body
Source Link

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if actived_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // doup notto executehere thisif actionyou run .... // but // the hook below doesn't add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; } 

In conclusion, I want to print a text in the header or footer just after a plugin is activated

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if actived_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // do not execute this action add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; } 

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if actived_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // up to here if you run .... // but // the hook below doesn't add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; } 

In conclusion, I want to print a text in the header or footer just after a plugin is activated

Source Link

Execute Hook on the footer or header after activating a plugin

I have the following code fraction, but it does not work, I want that after activating a plugin this calls an action on the footer and prints something, but I can't do it, the problem seems that the admin_footer does not run, I don't know if actived_plugin is just before or after the html is printed so that the admin_footer, or how could I fix it?

add_action( 'activated_plugin', 'admin_activated_plugin' ); function admin_activated_plugin(){ // do not execute this action add_action( 'admin_footer', 'after_activate_print_footer', 99 ); } function after_activate_print_footer(){ echo "something"; }