mirror of
https://github.com/ulaulaman/widget-for-co-authors.git
synced 2025-06-06 00:49:12 +02:00
Update widget-for-co-authors.php
This commit is contained in:
@@ -11,6 +11,13 @@ License: GPLv2 or later
|
|||||||
/* ------------------------------------------------------ */
|
/* ------------------------------------------------------ */
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Load translations
|
||||||
|
add_action('plugins_loaded', 'wan_load_textdomain');
|
||||||
|
function wan_load_textdomain() {
|
||||||
|
load_plugin_textdomain( 'co-authors-widget', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
|
||||||
|
}
|
||||||
|
|
||||||
# Shortcode to show authors
|
# Shortcode to show authors
|
||||||
add_shortcode('blog-post-coauthors', 'blog_post_coauthors');
|
add_shortcode('blog-post-coauthors', 'blog_post_coauthors');
|
||||||
function blog_post_coauthors() {
|
function blog_post_coauthors() {
|
||||||
@@ -131,12 +138,6 @@ $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_in
|
|||||||
return $instance;
|
return $instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load translations
|
|
||||||
add_action('plugins_loaded', 'wan_load_textdomain');
|
|
||||||
function wan_load_textdomain() {
|
|
||||||
load_plugin_textdomain( 'co-authors-widget', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ------------------------------------------------------ */
|
/* ------------------------------------------------------ */
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user