Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/wp-private-message/includes/ |
Upload File : |
<?php
/**
* Shortcodes
*
* @package wp-private-message
* @author Habq
* @license GNU General Public License, version 3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class WP_Private_Message_Shortcodes {
/**
* Initialize shortcodes
*
* @access public
* @return void
*/
public static function init() {
add_shortcode( 'wp_private_message_dashboard', array( __CLASS__, 'dashboard' ) );
}
public static function dashboard( $atts ) {
if ( is_user_logged_in() ) {
$user_id = WP_Private_Message_Mixes::get_current_user_id();
return WP_Private_Message_Template_Loader::get_template_part( 'dashboard', array( 'user_id' => $user_id ) );
} else {
return WP_Private_Message_Template_Loader::get_template_part( 'not-allowed' );
}
}
public static function send_message( $atts ) {
if ( is_user_logged_in() ) {
return WP_Private_Message_Template_Loader::get_template_part( 'send-message-form');
} else {
return WP_Private_Message_Template_Loader::get_template_part( 'not-allowed' );
}
}
}
WP_Private_Message_Shortcodes::init();