/** * Add free trial status to membership statuses * * @since 1.0.0 * @param array $statuses Array of statuses * @return array Modified array of statuses */ public function add_free_trial_status($statuses) { $statuses = SV_WC_Helper::array_insert_after($statuses, 'wcm-active', array('wcm-free_trial' => array('label' => _x('Free Trial', 'Membership Status', WC_Memberships::TEXT_DOMAIN), 'label_count' => _n_noop('Free Trial <span class="count">(%s)</span>', 'Free Trial <span class="count">(%s)</span>', WC_Memberships::TEXT_DOMAIN)))); return $statuses; }
/** * Add 'Social Profiles' column to the Users admin table * * @since 1.3.0 * @param array $columns user admin table columns * @return array $columns columns array with 'Social Profiles' */ public function add_user_columns($columns) { return SV_WC_Helper::array_insert_after($columns, 'email', array('wc_social_login_profiles' => __('Social Profiles', WC_Social_Login::TEXT_DOMAIN))); }
/** * Add custom contribution columns * * @since 1.0.0 * @param array $columns * @return array */ public function add_custom_contributions_columns(array $columns) { $columns = SV_WC_Helper::array_insert_after($columns, 'cb', array('type' => __('Type', WC_Product_Reviews_Pro::TEXT_DOMAIN))); $columns = SV_WC_Helper::array_insert_after($columns, 'comment', array('votes' => __('Votes', WC_Product_Reviews_Pro::TEXT_DOMAIN))); $columns = SV_WC_Helper::array_insert_after($columns, 'votes', array('flags' => _x('Flags', 'number of times contribution has been flagged', WC_Product_Reviews_Pro::TEXT_DOMAIN))); return $columns; }
/** * Add 'Social Profiles' column to the Users admin table * * @since 1.3.0 * @param array $columns user admin table columns * @return array $columns columns array with 'Social Profiles' */ public function add_user_columns($columns) { return SV_WC_Helper::array_insert_after($columns, 'email', array('wc_social_login_profiles' => __('Social Profiles', 'woocommerce-social-login'))); }