# give/2.12.0/includes/admin/admin-footer.php

GiveWP – Donation Plugin and Fundraising Platform, version 2.12.0. 43 lines.

- Page: https://pluginprobe.com/plugins/give/2.12.0/code/includes/admin/admin-footer.php
- Raw: https://pluginprobe.com/plugins/give/2.12.0/raw/includes/admin/admin-footer.php
- Modified: 2020-09-01T19:31:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/2.12.0/code/includes/admin/admin-footer.php#L10-L20`.

```php
<?php
/**
 * Admin Footer
 *
 * @package     Give
 * @subpackage  Admin/Footer
 * @copyright   Copyright (c) 2016, GiveWP
 * @license     https://opensource.org/licenses/gpl-license GNU Public License
 * @since       1.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Add rating links to the admin dashboard
 *
 * @param string $footer_text The existing footer text
 *
 * @return      string
 * @since        1.0
 * @global        string $typenow
 */
function give_admin_rate_us( $footer_text ) {
	global $typenow;

	if ( 'give_forms' === $typenow ) {
		$rate_text = sprintf(
			/* translators: %s: Link to 5 star rating */
			__( 'If you like <strong>GiveWP</strong> please leave us a %s rating. It takes a minute and helps a lot. Thanks in advance!', 'give' ),
			'<a href="https://wordpress.org/support/view/plugin-reviews/give?filter=5#postform" target="_blank" class="give-rating-link" style="text-decoration:none;" data-rated="' . esc_attr__( 'Thanks :)', 'give' ) . '">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
		);

		return $rate_text;
	} else {
		return $footer_text;
	}
}

add_filter( 'admin_footer_text', 'give_admin_rate_us' );

```
