Skip to content

Commit

Permalink
fix: image replacement on WordPress REST api responses
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Mar 11, 2019
1 parent 447720d commit 24d191b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ public function register_hooks() {
),
defined( 'OPTML_SITE_MIRROR' ) ? PHP_INT_MAX : PHP_INT_MIN
);

add_action( 'rest_api_init', array( $this, 'process_template_redirect_content' ), PHP_INT_MIN );

add_action( 'get_post_metadata', array( $this, 'replace_meta' ), PHP_INT_MAX, 4 );

foreach ( $this->compatibilities as $compatibility_class ) {
Expand Down

0 comments on commit 24d191b

Please sign in to comment.