Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/barryceelen/wp-metazoinks/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress Metazoinks
A.K.A "Yet Another Meta Description Plugin."
A WordPress plugin for editing the title and description <meta> tag for your public post types.
Filter the post types and/or add additional title and description inputs (eg. for sites with multiple languages):
// Filter metazoinks options.
add_filter( 'metazoinks_options', 'myprefix_filter_metazoinks_options' );
/**
* Filter metazoinks options.
*
* @param array $options List of options.
* @return array
*/
function myprefix_filter_metazoinks_options( $options ) {
$options['post_types'] = array( 'post', 'my_cool_post_type' );
$options['title_inputs][] = array(
'label' => __( 'Title (French)', 'prefix' ),
'meta_key' => '_meta_title_fr',
);
$options['description_inputs][] = array(
'label' => __( 'Description (French)', 'prefix' ),
'meta_key' => '_meta_title_fr',
);
return $options;
}
Do something with your additional inputs:
// Filter document title.
add_filter( 'metazoinks_title', 'myprefix_filter_metazoinks_title' );
/**
* Filter document title.
*
* @param string $title Document title.
* @return string
*/
function myprefix_filter_metazoinks_title( $title ) {
// Assuming you have some sort of multilanguage setup, stuff like this might work.
if ( 'fr_FR' === get_locale() ) {
global $post;
if ( ! empty( $post->_meta_title_fr ) ) {
$title = esc_attr( $post->_meta_title_fr );
}
}
return $title;
}Releases
1 release.
Tag
Published
1.0.0
latest
Jul 17, 2017 9 years ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.