Noptin_Abstract_Integration::get_checkbox_attributes()
Get a string of attributes for the checkbox element.
Return Return
(string)
Source Source
File: includes/integrations/class-noptin-abstract-integration.php
protected function get_checkbox_attributes() { $attributes = array( 'type' => 'checkbox', 'name' => 'noptin-subscribe', 'value' => '1', ); $attributes = (array) apply_filters( 'noptin_integration_subscription_checkbox_attributes', $attributes, $this ); $attributes = (array) apply_filters( "noptin_{$this->slug}_integration_subscription_checkbox_attributes", $attributes, $this ); $string = ''; foreach ( $attributes as $key => $value ) { $string .= sprintf( '%s="%s"', $key, esc_attr( $value ) ); } return $string; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.6 | Introduced. |