Skip to content

Commit

Permalink
Add acf hook
Browse files Browse the repository at this point in the history
  • Loading branch information
foteinigk committed Sep 3, 2024
1 parent f28af30 commit 360d581
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transifex-live-integration-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ static function do_plugin( $is_admin, $version ) {
// Add filters for custom post types
add_filter( 'post_type_link', [$rewrite, 'pre_post_link_hook'], 10, 3 );
add_filter( 'post_type_link', [$rewrite, 'post_link_hook'], 10, 3 );

// Add filters for custom acf fields
add_filter( 'acf/format_value', [$rewrite, 'custom_field_link_hook'], 10, 3 );
}
}
$subdirectory = Transifex_Live_Integration_Static_Factory::create_subdirectory( $settings, $rewrite_options );
Expand Down

0 comments on commit 360d581

Please sign in to comment.