Title: MetaMax
Author: eoutvik
Published: <strong>2016 年 9 月 23 日</strong>
Last modified: 2016 年 10 月 19 日

---

搜索插件

![](https://ps.w.org/metamax/assets/banner-772x250.png?rev=1501085)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/metamax/assets/icon-256x256.png?rev=1501045)

# MetaMax

 作者：[eoutvik](https://profiles.wordpress.org/eoutvik/)

[下载](https://downloads.wordpress.org/plugin/metamax.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/metamax/#description)
 * [评价](https://cn.wordpress.org/plugins/metamax/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/metamax/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/metamax/#developers)

 [支持](https://wordpress.org/support/plugin/metamax/)

## 描述

MetaMax is meant to be a lightweight and super simple replacement for Yoast SEO.
He does not have the advanced GUI or content analysis that Yoast SEO offers, but
instead focuses on good standards and less noise — all ready to go in one click.
MetaMax is also more performant than Yoast SEO, and will not have the same impact
on your pageload. But of course you always cache your site anyways, right? Made 
with passion by Appex!

#### Tags

SEO, Yoast, social, sharing, meta, meta tags, facebook, twitter, google, description

### Filters

> Appex_Metamax::FILTER_META_OG_TITLE
>  Appex_Metamax::FILTER_META_DESCRIPTION Appex_Metamax::
> FILTER_META_OG_DESCRIPTION Appex_Metamax::FILTER_META_OG_LOCALE Appex_Metamax::
> FILTER_META_OG_SITE_NAME Appex_Metamax::FILTER_META_OG_URL Appex_Metamax::FILTER_META_OG_VIDEO
> Appex_Metamax::FILTER_META_OG_TYPE Appex_Metamax::FILTER_META_PROFILE_FIRST_NAME
> Appex_Metamax::FILTER_META_PROFILE_LAST_NAME Appex_Metamax::FILTER_META_TWITTER_CARD
> Appex_Metamax::FILTER_META_FB_APP_ID

The filters above will expect a string in return

#### Example

    ```
    if ( class_exists( 'Appex_Metamax' ) ) {

        add_filter( Appex_Metamax::FILTER_META_OG_TITLE, function( $content ) {

            // Override title if not on home page
            if( !is_home() ) {

                $content = 'My new fancy title';

            }

            return $content;

        });

    }
    ```

> Appex_Metamax::FILTER_META_OG_IMAGE
>  Appex_Metamax::FILTER_META_DEFAULT_OG_IMAGE

The image filters will expect an array of arrays with url, width and height in the
following format: array(array(url, width, height));

#### Example

    ```
    // Default image fallback filter
    if ( class_exists( 'Appex_Metamax' ) ) {

        add_filter( Appex_Metamax::FILTER_META_DEFAULT_OG_IMAGE, function( $images ) {

            $images[] = wp_get_attachment_image_src( $attachment_id, 'large' );

            return $images;

        });

    }

    // Add images
    if ( class_exists( 'Appex_Metamax' ) ) {

        add_filter( Appex_Metamax::FILTER_META_OG_IMAGE, function( $images ) {

            $images[] = array(
                            'http://example.com/images/waycoolimage.jpg', 
                            1200, 
                            800 
                        );

            if( is_archive() ) {

                $images[] = wp_get_attachment_image_src( $attachment_id, 'large' );

            }

            return $images;

        });

    }
    ```

## 安装

For most use cases the MetaMax defaults will be sufficient, but if, for some insane
reason, MetaMax is unable to generate the desired output on one or more meta tags,
you can always hook on to his filters and tell him how he should handle your content.
If you do, he will blindly follow your instructions even if it sets your server 
RAM on fire. Good luck!

## 常见问题

  Does MetaMax support WooCommerce?

We don’t know. He certainly does if you tell him how to handle WooCommerce content
in his filters.

  Does MetaMax support multisite?

Again, we don’t know. Maybe you could try it out and give us some feedback? 🙂

## 评价

此插件暂无评价。

## 贡献者及开发者

「MetaMax」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ eoutvik ](https://profiles.wordpress.org/eoutvik/)
 *   [ andersdosen ](https://profiles.wordpress.org/andersdosen/)
 *   [ heintore ](https://profiles.wordpress.org/heintore/)

[帮助将「MetaMax」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/metamax)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/metamax/)，查看[SVN仓库](https://plugins.svn.wordpress.org/metamax/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/metamax/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/metamax/)。

## 更新日志

#### 1.1.1

 * Fixed linebreak on 404 pages
 * Fixed missing global $post object

#### 1.1

 * Fixed undefined $post_thumbnail_id bug
 * Removed attached images from og:image array

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/metamax/)
 * 标签
 * [google](https://cn.wordpress.org/plugins/tags/google/)[meta description](https://cn.wordpress.org/plugins/tags/meta-description/)
   [meta title](https://cn.wordpress.org/plugins/tags/meta-title/)[noindex](https://cn.wordpress.org/plugins/tags/noindex/)
   [seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/metamax/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/metamax/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/metamax/reviews/)

## 贡献者

 *   [ eoutvik ](https://profiles.wordpress.org/eoutvik/)
 *   [ andersdosen ](https://profiles.wordpress.org/andersdosen/)
 *   [ heintore ](https://profiles.wordpress.org/heintore/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/metamax/)