LLMS_Emails::get_button_style()

Get a string of inline CSS to add to an email button Use {button_style} merge code to output in HTML emails


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.emails.php

	public function get_button_style() {
		$rules = apply_filters( 'llms_email_button_css', array(
			'background-color' => $this->get_css( 'button-background-color', false ),
			'color' => $this->get_css( 'button-font-color', false ),
			'display' => 'inline-block',
			'padding' => '10px 15px',
			'text-decoration' => 'none',
		) );
		$styles = '';
		foreach ( $rules as $rule => $style ) {
			$styles .= sprintf( '%1$s:%2$s !important;', $rule, $style );
		}
		return $styles;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.