My Plugin Safety doubt
-
Hi,
I’m developing a new plugin; in the fronthand, i want to check if the plugin is active by using this code:<?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if(is_plugin_active( 'plugin-directory/plugin.php' ) ){ do-something(); }?>
Does the first line (include_once …. ) allow the user to bypass the following security line that WordPress suggest to set at the beginning of every php plugin file?
<?php if ( ! defined( ‘ABSPATH’ ) ) exit;?>
if yes, how can I check in a secure way “in the fronthand” if a plugin is active?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘My Plugin Safety doubt’ is closed to new replies.