Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
config-ui
/
fields
/
File Content:
class-field-mailchimp-signup.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\ConfigurationUI */ /** * Class WPSEO_Config_Field_Mailchimp_Signup. */ class WPSEO_Config_Field_Mailchimp_Signup extends WPSEO_Config_Field { /** * WPSEO_Config_Field_Mailchimp_Signup constructor. */ public function __construct() { parent::__construct( 'mailchimpSignup', 'MailchimpSignup' ); $current_user = wp_get_current_user(); $user_email = ( $current_user->ID > 0 ) ? $current_user->user_email : ''; $signup_text = sprintf( /* translators: %1$s expands to Yoast SEO for WordPress, %2$s expands to Yoast */ __( 'Sign up for our newsletter if you would like to keep up-to-date about %1$s, other cool plugins by %2$s, and interesting news and tips from the world of SEO.', 'wordpress-seo' ), 'Yoast SEO for WordPress', 'Yoast' ); $gdpr_notice = sprintf( /* translators: %1$s expands Yoast, %2$s expands to an opening anchor tag, %3$s expands to a closing anchor tag. */ __( '%1$s respects your privacy. Read our %2$sprivacy policy%3$s on how we handle your personal information.', 'wordpress-seo' ), 'Yoast', '<a target="_blank" rel="noopener noreferrer" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/gdpr-config-wizard' ) . '">', '</a>' ); $this->set_property( 'label', $signup_text ); $this->set_property( 'decoration', plugin_dir_url( WPSEO_FILE ) . 'images/newsletter-collage.png' ); $this->set_property( 'mailchimpActionUrl', 'https://yoast.us1.list-manage.com/subscribe/post-json?u=ffa93edfe21752c921f860358&id=972f1c9122' ); $this->set_property( 'currentUserEmail', $user_email ); $this->set_property( 'freeAccountNotice', __( 'Includes a free MyYoast account which gives you access to our free SEO for Beginners course!', 'wordpress-seo' ) ); $this->set_property( 'GDPRNotice', sprintf( '<small>%s</small>', $gdpr_notice ) ); } /** * Get the data. * * @return array */ public function get_data() { return [ 'hasSignup' => $this->has_mailchimp_signup(), ]; } /** * 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(), WPSEO_Config_Component_Mailchimp_Signup::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
DownloadConfController.php
945 bytes
0644
JsonSerializable-20260705095652.php
577 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-field-choice-post-type.php
1972 bytes
0644
class-field-choice.php
879 bytes
0644
class-field-company-info-missing.php
751 bytes
0644
class-field-company-logo.php
807 bytes
0644
class-field-company-name.php
845 bytes
0644
class-field-company-or-person.php
1113 bytes
0644
class-field-environment.php
2631 bytes
0644
class-field-mailchimp-signup.php
2323 bytes
0644
class-field-multiple-authors.php
2353 bytes
0644
class-field-person.php
793 bytes
0644
class-field-post-type-visibility.php
675 bytes
0644
class-field-profile-url-facebook.php
872 bytes
0644
class-field-profile-url-instagram.php
873 bytes
0644
class-field-profile-url-linkedin.php
868 bytes
0644
class-field-profile-url-myspace.php
854 bytes
0644
class-field-profile-url-pinterest.php
873 bytes
0644
class-field-profile-url-twitter.php
785 bytes
0644
class-field-profile-url-wikipedia.php
899 bytes
0644
class-field-profile-url-youtube.php
857 bytes
0644
class-field-separator.php
1253 bytes
0644
class-field-site-name.php
1422 bytes
0644
class-field-site-type.php
1312 bytes
0644
class-field-success-message.php
1347 bytes
0644
class-field-suggestions.php
1007 bytes
0644
class-field-title-intro.php
796 bytes
0644
class-field-tracking-intro.php
1004 bytes
0644
class-field-tracking.php
1590 bytes
0644
class-field.php
2563 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class.pack.database.php
30838 bytes
0644
deactivation.php
21118 bytes
0644
define.php
4567 bytes
0644
duplicator-main.php
26907 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
exceptions.php
708 bytes
0644
image-helper.php
10231 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator-20260705095925.php
5401 bytes
0644
inc.validator-20260705133221.php
5401 bytes
0644
inc.validator.php
5401 bytes
0644
index-20260707124558.php
157663 bytes
0644
index.php
157663 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
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr