<?php

defined('DOLPHY_PLUGIN') or die('Access Denied!');

add_action('dolphy_header_scripts', function () {
  wp_print_head_scripts();
  wp_print_styles();
});

add_action('dolphy_footer_scripts', function () {
  wp_print_footer_scripts();
});

// ADMIN HEAD ------------------------

add_action('admin_head', function ($hook) {
  $screen = get_current_screen();
  if (strpos($screen->id, 'dolphy') === false) return;

  remove_all_actions('admin_notices');
}, 5000);
