Skip to content

Instantly share code, notes, and snippets.

View ribeiroeder's full-sized avatar

Eder Ribeiro ribeiroeder

View GitHub Profile
This file has been truncated, but you can view the full file.
/******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./src/components/common/error-boundary/index.js":
/*!*******************************************************!*\
!*** ./src/components/common/error-boundary/index.js ***!
\*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
@ribeiroeder
ribeiroeder / relevanssi-attachment-metaboxio.php
Last active September 5, 2018 03:32
Relevanssi index attachment Metabox.io File Advanced titles for parent post
add_filter( 'relevanssi_content_to_index', 'rlv_index_attachment_names', 10, 2 );
function rlv_index_attachment_names( $content, $post_id ) {
if ($post_id->post_type == "your_post_type") {
$files = rwmb_meta( '_your_meta_file_advanced' );
foreach ( $files as $file ) {
$content .= ' ' . $file['title'];
}
}
return $content;
}