/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

//Hide plugin update
function hide_specific_plugin_update_notification($value) {
    if (isset($value) && is_object($value)) {
        unset($value->response['bdthemes-element-pack/bdthemes-element-pack.php']);
    }
    return $value;
}

add_filter('site_transient_update_plugins', 'hide_specific_plugin_update_notification');

function hide_custom_plugin_notification() {
    // Check if the user has the capability to dismiss notifications (usually administrators).
    if (current_user_can('manage_options')) {
        // Output JavaScript to hide the specific notification.
        echo '<script type="text/javascript">
            jQuery(document).ready(function($) {
                $("#element-pack-notice-id-license-issue").hide();
            });
            </script>';
    }
}

add_action('admin_footer', 'hide_custom_plugin_notification');