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

Feature implementation for #1471 #1472

Merged
merged 18 commits into from
Aug 9, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'develop' into feature/validate-mapping
  • Loading branch information
asharirfan committed Jan 18, 2020
commit 8ba02e37bab7a690daf3ac1cc5490fbc374575c4
7 changes: 7 additions & 0 deletions includes/classes/Indexable/Post/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ public function get_mapping_name() {
public function put_mapping() {
$mapping_file = $this->get_mapping_name();

/**
* Filter post indexable mapping file
*
* @hook ep_post_mapping_file
* @param {string} $file Path to file
* @return {string} New file path
*/
$mapping = require apply_filters( 'ep_post_mapping_file', __DIR__ . '/../../../mappings/post/' . $mapping_file );

/**
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.