base, 'achtm' ) !== false ) { wp_enqueue_style( 'achtm_style', ACHTM_URL. 'assets/css/style.css', array(), '1.0.0' ); wp_style_add_data( 'achtm_style', 'rtl', 'replace' ); wp_enqueue_style( 'load-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ); wp_enqueue_script( 'jquery-achTabs', ACHTM_URL. 'assets/js/jquery-achtmTabs.js', array(), '1.0.0', false ); } } add_action( 'admin_enqueue_scripts', 'achtm_admin_style', 100, 10 ); // Plugin activation hook and notice. register_activation_hook( __FILE__, 'achtm_plugin_activation' ); register_deactivation_hook( __FILE__, 'achtm_plugin_deactivation' ); function achtm_plugin_activation() { if ( ! current_user_can( 'activate_plugins' ) ) { return; } set_transient( 'achtm-admin-notice-on-activation', true, 5 ); } /* function achtm_plugin_deactivation() { if( get_option( 'achtm_google_anaytics_code' ) ) { delete_option( 'achtm_google_anaytics_code' ); } if( get_option( 'achtm_tag_manager_id' ) ) { delete_option( 'achtm_tag_manager_id' ); } if( get_option( 'achtm_google_measurement_id' ) ) { delete_option( 'achtm_google_measurement_id' ); } } */ function achtm_plugin_install_notice() { if( get_transient( 'achtm-admin-notice-on-activation' ) ) { ?>
here to configure plugin settings.', 'ach-tag-manager' ), 'ACh Tag Manager', ACHTM_PLUGIN_VERSION, admin_url( 'options-general.php?page=achtm' ) ); ?>