Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
config-ui
/
components
/
File Content:
class-component-mailchimp-signup.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\ConfigurationUI */ /** * Represents the mailchimp signup components. */ class WPSEO_Config_Component_Mailchimp_Signup implements WPSEO_Config_Component { /** * The name of the mailchimp signup meta key. * * @var string */ const META_NAME = 'wpseo-has-mailchimp-signup'; /** * Gets the component identifier. * * @return string */ public function get_identifier() { return 'MailchimpSignup'; } /** * Gets the field. * * @return WPSEO_Config_Field_Mailchimp_Signup */ public function get_field() { return new WPSEO_Config_Field_Mailchimp_Signup(); } /** * Get the data for the field. * * @return mixed */ public function get_data() { $data = [ 'hasSignup' => $this->has_mailchimp_signup(), ]; return $data; } /** * Save data. * * @param array $data Data containing changes. * * @return mixed */ public function set_data( $data ) { $has_saved = false; if ( ! empty( $data['hasSignup'] ) ) { // Saves the user meta. update_user_meta( get_current_user_id(), self::META_NAME, true ); $has_saved = ( $data['hasSignup'] === $this->has_mailchimp_signup() ); } // Collect results to return to the configurator. $results = [ 'hasSignup' => $has_saved, ]; return $results; } /** * Checks if the user has entered their email for mailchimp already. * * @return bool */ protected function has_mailchimp_signup() { $user_meta = get_user_meta( get_current_user_id(), self::META_NAME, true ); return ( ! empty( $user_meta ) ); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
20200616130143_ReplacePermalinkHashIndex.php
2293 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable-20260705065740.php
577 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
class-component-mailchimp-signup.php
1599 bytes
0644
class-component-suggestions.php
4110 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
ctrl.package.php
17073 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeDropbox.class.php
41782 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260624191629.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
image-helper.php
10231 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
157663 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
root.php
1951 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr