__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace ElementsKit_Lite\Core;
use ElementsKit_Lite\Libs\Framework\Classes\Onboard_Status;
defined( 'ABSPATH' ) || exit;
class Activation_Actions {
private $key = 'elementskit-lite__plugin_activated';
private $has_key = false;
public function init() {
if ( ! is_admin() ) {
return;
}
$this->process_key();
if ( $this->has_key === false ) {
return;
}
// call activation job classes or methods here.
$this->flush_rewrite_rules();
$this->redirect_to_onboard();
}
private function process_key() {
if ( ! empty( get_option( $this->key ) ) ) {
$this->has_key = true;
delete_option( $this->key );
}
}
private function flush_rewrite_rules() {
// all CPTs must be declared completely before flushing rewrite rules. otherwise, it won't work as expected.
flush_rewrite_rules();
}
private function redirect_to_onboard() {
// Onboard_Status::redirect_onboard();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| activation-actions.php | File | 926 B | 0775 |
|
| build-inline-scripts.php | File | 1.22 KB | 0775 |
|
| build-modules.php | File | 993 B | 0775 |
|
| build-widgets.php | File | 2.62 KB | 0775 |
|
| config-list.php | File | 1.54 KB | 0775 |
|
| handler-api.php | File | 993 B | 0775 |
|
| handler-widget.php | File | 723 B | 0775 |
|