• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Notice::should_display() – Determines whether or not the notice should be displayed.

You appear to be a bot. Output may be restricted

Description

Determines whether or not the notice should be displayed.

Typically individual notices should not override this method, as it combines a dismissal check and custom display logic (`_should_display()`). Custom logic should go in `_should_display()`.

Usage

$bool = Notice::should_display();

Parameters

Returns

bool

Source

File name: easy-digital-downloads/includes/admin/promos/notices/abstract-notice.php
Lines:

1 to 3 of 3
  public function should_display() {
    return current_user_can( static::CAPABILITY ) && ! PromoHandler::is_dismissed( $this->get_id() ) && $this->_should_display();
  }
 

 View on GitHub View on Trac

Published: 12th September 2021 | Last updated: 26th January 2022

Primary Sidebar

Information

Function name: Notice::should_display
Class ref: Notice
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/promos/notices/abstract-notice.php
File ref: includes/admin/promos/notices/abstract-notice.php
Deprecated?: No
API Letters: D,N,S

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites