Skip to content
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
18 changes: 18 additions & 0 deletions classes/class-object-sync-sf-wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,24 @@ public function get_wordpress_table_structure( $object_type ) {
);
} // End if() statement.

/**
* Filter the resolved WordPress table structure for an object type.
*
* This is a catch-all filter that allows overriding or extending the
* table structure for any object type (core, custom post types, or
* custom taxonomies), while keeping backwards compatibility.
*
* @since 2.2.13
*
* @param array $object_table_structure The resolved table structure.
* @param string $object_type The requested object type.
*/
$object_table_structure = apply_filters(
$this->option_prefix . 'wordpress_table_structure',
$object_table_structure,
$object_type
);

return $object_table_structure;
}

Expand Down