Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass field $values to fm_element_markup_start and fm_element_markup_end ... #261

Merged
merged 2 commits into from
Feb 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions php/class-fieldmanager-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function element_markup( $values = array() ) {
);

// After starting the field, apply a filter to allow other plugins to append functionality
$out = apply_filters( 'fm_element_markup_start', $out, $this );
$out = apply_filters( 'fm_element_markup_start', $out, $this, $values );
if ( ( 0 == $this->limit || ( $this->limit > 1 && $this->limit > $this->minimum_count ) ) && "top" == $this->add_more_position ) {
$out .= $this->add_another();
}
Expand All @@ -470,7 +470,7 @@ public function element_markup( $values = array() ) {
}

// Before closing the field, apply a filter to allow other plugins to append functionality
$out = apply_filters( 'fm_element_markup_end', $out, $this );
$out = apply_filters( 'fm_element_markup_end', $out, $this, $values );

$out .= '</div>';

Expand Down