MC4WP_Admin_Tools::on_plugin_page ( string $page = null )

Return: (bool)

Source file: admin/class-admin-tools.php

View source


Parameters

$page

(string) (Optional)

Default value: null


Used by


Source

    public function on_plugin_page( $page = null ) {
        // any settings page
        if( is_null( $page ) ) {
            return isset( $_GET['page'] ) && strpos( $_GET['page'], 'mailchimp-for-wp' ) === 0;
        }

        // specific page
        return $this->get_plugin_page() === $page;
    }


User Contributed Notes

You must log in before being able to contribute a note.