• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Jetpack::dashboard_widget_footer() – Fires when the dashboard is loaded.

You appear to be a bot. Output may be restricted

Description

Fires when the dashboard is loaded.

Usage

Jetpack::dashboard_widget_footer();

Parameters

Returns

void

Source

File name: jetpack/class.jetpack.php
Lines:

1 to 68 of 68
  public static function dashboard_widget_footer() {
    ?>
		<footer>

		<div class="protect">
			<h3><?php esc_html_e( 'Brute force attack protection', 'jetpack' ); ?></h3>
			<?php if ( self::is_module_active( 'protect' ) ) : ?>
				<p class="blocked-count">
					<?php echo number_format_i18n( get_site_option( 'jetpack_protect_blocked_attempts', 0 ) ); ?>
				</p>
				<p><?php echo esc_html_x( 'Blocked malicious login attempts', '{#} Blocked malicious login attempts -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p>
			<?php elseif ( current_user_can( 'jetpack_activate_modules' ) && ! ( new Status() )->is_offline_mode() ) : ?>
				<a href="
				<?php
        echo esc_url(
          wp_nonce_url(
            self::admin_url(
              array(
                'action' => 'activate',
                'module' => 'protect',
              )
            ),
            'jetpack_activate-protect'
          )
        );
        ?>
							" class="button button-jetpack" title="<?php esc_attr_e( 'Protect helps to keep you secure from brute-force login attacks.', 'jetpack' ); ?>">
					<?php esc_html_e( 'Activate brute force attack protection', 'jetpack' ); ?>
				</a>
			<?php else : ?>
				<?php esc_html_e( 'Brute force attack protection is inactive.', 'jetpack' ); ?>
			<?php endif; ?>
		</div>

		<div class="akismet">
			<h3><?php esc_html_e( 'Anti-spam', 'jetpack' ); ?></h3>
			<?php if ( is_plugin_active( 'akismet/akismet.php' ) ) : ?>
				<p class="blocked-count">
					<?php echo number_format_i18n( get_option( 'akismet_spam_count', 0 ) ); ?>
				</p>
				<p><?php echo esc_html_x( 'Blocked spam comments.', '{#} Spam comments blocked by Akismet -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p>
			<?php elseif ( current_user_can( 'activate_plugins' ) && ! is_wp_error( validate_plugin( 'akismet/akismet.php' ) ) ) : ?>
				<a href="
				<?php
        echo esc_url(
          wp_nonce_url(
            add_query_arg(
              array(
                'action' => 'activate',
                'plugin' => 'akismet/akismet.php',
              ),
              admin_url( 'plugins.php' )
            ),
            'activate-plugin_akismet/akismet.php'
          )
        );
        ?>
							" class="button button-jetpack">
					<?php esc_html_e( 'Activate Anti-spam', 'jetpack' ); ?>
				</a>
			<?php else : ?>
				<p><a href="<?php echo esc_url( 'https://akismet.com/?utm_source=jetpack&utm_medium=link&utm_campaign=Jetpack%20Dashboard%20Widget%20Footer%20Link' ); ?>"><?php esc_html_e( 'Anti-spam can help to keep your blog safe from spam!', 'jetpack' ); ?></a></p>
			<?php endif; ?>
		</div>

		</footer>
		<?php
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 21 August 2020

Primary Sidebar

Information

Function name: Jetpack::dashboard_widget_footer
Class ref: Jetpack
Plugin ref: Jetpack
Version: 9.2
Sourcefile: class.jetpack.php
File ref: class.jetpack.php
Deprecated?: No
API Letters: D,F,J,W

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
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:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites