Remove WP version from Admin Footer
-
Hello Pankaj,
Could you please add in the next version, another option to also remove the WordPress Version and Thank you message from the Admin footer?
Code:
add_settings_field('pkm_admin_footer_checkbox', __('Remove WP version from admin footer', 'meta-generator-and-version-info-remover'), array($this, 'pkm_admin_footer_checkbox_setting'), __FILE__, 'pkm_meta_generator_and_version_info_remover_section');
public function pkm_admin_footer_checkbox_setting() { ?> <input name="meta_generator_and_version_info_remover_options[pkm_admin_footer_checkbox]" type="checkbox" value="1"<?php checked( 1 == (isset($this->options['pkm_admin_footer_checkbox']) && $this->options['pkm_admin_footer_checkbox']) ); ?> /> <?php }
if ( isset($options['pkm_admin_footer_checkbox']) && ($options['pkm_admin_footer_checkbox'] == 1) ) { add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 ); }
'pkm_admin_footer_checkbox' => 0
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove WP version from Admin Footer’ is closed to new replies.