Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
plugins
/
dealership
/
src
/
Frontend
/
EndPoints
/
File Content:
LogoutEP.php
<?php namespace DealerShip\Frontend\EndPoints; use DealerShip\Helpers\QueryHelper; use DealerShip\Interfaces\Base; use DealerShip\Interfaces\EndPoint; defined('DEALERSHIP') or exit(); class LogoutEP extends EndPoint { public function hooks(){ add_action('wp_loaded', array($this, 'logout')); } public function logout(){ if(!isset($_GET['_wpnonce']) || !wp_verify_nonce($_GET['_wpnonce'], 'dls_customer-logout')) { return false; } $permalink = QueryHelper::get_main_permalink(); wp_logout(); // Redirect to permalink without cache is 307 header('Location:'.$permalink, true, 307); exit; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
DealersEP.php
2620 bytes
0644
EditAccountEP.php
5844 bytes
0644
LoginEP.php
5503 bytes
0644
LogoutEP.php
719 bytes
0644
ProductEP.php
17547 bytes
0644
RegisterEP.php
10278 bytes
0644
N4ST4R_ID | Naxtarrr