PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 3.15.0
GiveWP – Donation Plugin and Fundraising Platform v3.15.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / includes / admin / admin-footer.php
admin-footer.php
43 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin Footer
4 *
5 * @package Give
6 * @subpackage Admin/Footer
7 * @copyright Copyright (c) 2016, GiveWP
8 * @license https://opensource.org/licenses/gpl-license GNU Public License
9 * @since 1.0
10 */
11
12 // Exit if accessed directly.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 /**
18 * Add rating links to the admin dashboard
19 *
20 * @param string $footer_text The existing footer text
21 *
22 * @return string
23 * @since 1.0
24 * @global string $typenow
25 */
26 function give_admin_rate_us( $footer_text ) {
27 global $typenow;
28
29 if ( 'give_forms' === $typenow ) {
30 $rate_text = sprintf(
31 /* translators: %s: Link to 5 star rating */
32 __( 'If you like <strong>GiveWP</strong> please leave us a %s rating. It takes a minute and helps a lot. Thanks in advance!', 'give' ),
33 '<a href="https://docs.givewp.com/rate-givewp" target="_blank" class="give-rating-link" style="text-decoration:none;" data-rated="' . esc_attr__( 'Thanks :)', 'give' ) . '">&#9733;&#9733;&#9733;&#9733;&#9733;</a>'
34 );
35
36 return $rate_text;
37 } else {
38 return $footer_text;
39 }
40 }
41
42 add_filter( 'admin_footer_text', 'give_admin_rate_us' );
43