• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
    • Help
      • Online help
      • Learn Git
      • Welcome to Bitbucket
      • Keyboard shortcuts
    • Log In
    Blackrock
    1. Blackrock

    main

    Public
    Actions
    • Clone

    Learn more about cloning repositories

    You have read-only access

    Navigation
    • Source
    • Commits
    • Branches
    • All Branches Graph
    • Graphs
    • Forks
    1. Blackrock
    2. main

    Source

    main/wp-content/plugins/mailchimp-for-woocommerce/includes/api/class-mailchimp-woocommerce-create-list-submission.php
    Артем ШиряевАртем Ширяев committed 554847ddcb906 Apr 2021
    Raw file
    Source viewDiff to previous
        public function setCampaignDefaults($name, $email, $subject, $language = 'en')
     
    1
    <?php
    2
    ​
    3
    /**
    4
     * Created by Vextras.
    5
     *
    6
     * Name: Ryan Hungate
    7
     * Email: ryan@vextras.com
    8
     * Date: 7/8/16
    9
     * Time: 4:16 PM
    10
     */
    11
    class MailChimp_WooCommerce_CreateListSubmission
    12
    {
    13
        /**
    14
         * @var array
    15
         */
    16
        protected $props = array();
    17
    ​
    18
        /**
    19
         * @param $name
    20
         * @return $this
    21
         */
    22
        public function setName($name)
    23
        {
    24
            $this->props['name'] = $name;
    25
    ​
    26
            return $this;
    27
        }
    28
    ​
    29
        /**
    30
         * @param $bool
    31
         * @return $this
    32
         */
    33
        public function setUseArchiveBar($bool)
    34
        {
    35
            $this->props['use_archive_bar'] = (bool) $bool;
    36
    ​
    37
            return $this;
    38
        }
    39
    ​
    40
        /**
    41
         * @param $reminder
    42
         * @return $this
    43
         */
    44
        public function setPermissionReminder($reminder)
    45
        {
    46
            $this->props['permission_reminder'] = $reminder;
    47
    ​
    48
            return $this;
    49
        }
    50
    ​
    51
        /**
    52
         * @param $email
    53
         * @return $this
    54
         */
    55
        public function setNotifyOnSubscribe($email)
    56
        {
    57
            $this->props['notify_on_subscribe'] = $email;
    58
    ​
    59
            return $this;
    60
        }
    61
    ​
    62
        /**
    63
         * @param string $email
    • Git repository management for enterprise teams powered by Atlassian Bitbucket
    • Atlassian Bitbucket v5.10.1
    • Documentation
    • Contact Support
    • Request a feature
    • About
    • Contact Atlassian
    Atlassian

    Everything looks good. Well let you know here if theres anything you should know about.