Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 8c5953a

Browse files
committed
Pass (snapshot object) to customize_snapshot_save filter.
1 parent 856d135 commit 8c5953a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

php/class-customize-snapshot.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,11 @@ public function save( array $args ) {
294294
/**
295295
* Filter the snapshot's data before it's saved to 'post_content'.
296296
*
297-
* @param array $data Customizer snapshot data, with setting IDs mapped to an array
298-
* containing a `value` array item and potentially other metadata.
297+
* @param array $data Customizer snapshot data, with setting IDs mapped to an array
298+
* containing a `value` array item and potentially other metadata.
299+
* @param Customize_Snapshot $this Snapshot object.
299300
*/
300-
$this->data = apply_filters( 'customize_snapshot_save', $this->data );
301+
$this->data = apply_filters( 'customize_snapshot_save', $this->data, $this );
301302

302303
$result = $this->snapshot_manager->post_type->save( array_merge(
303304
$args,

0 commit comments

Comments
 (0)