Filter this function to change the meta description value set by wpcom_vip_meta_desc().

Can be configured to use either first X chars/words of the post content or post excerpt if available Can use category description for category archive pages if available Can use tag description for tag archive pages if available Can use blog description for everything else Can use a default description if no suitable value is found Can use the value of a custom field as description

Usage: // add a custom configuration via filter function set_wpcom_vip_meta_desc_settings( $settings ) { return array( ‘length’ => 10, ‘length_unit’ => ‘char|word’, ‘use_excerpt’ => true, ‘add_category_desc’ => true, ‘add_tag_desc’ => true, ‘add_other_desc’ => true, ‘default_description’ => ”, ‘custom_field_key’ => ” ); } add_filter( ‘wpcom_vip_meta_desc_settings’, ‘set_wpcom_vip_meta_desc_settings’ ); add_action( ‘wp_head’, ‘wpcom_vip_meta_desc’ );


This function has no parameters.

Return Value

string: The meta description

Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.