Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

update the plugin to fix localization-not-working #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions simple-post-expiration.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
function pw_spe_text_domain() {

// Load the default language files
load_plugin_textdomain( 'pw-spe' );
load_plugin_textdomain('pw-spe', false, plugin_basename(dirname(__FILE__)). '/languages');

}
add_action( 'init', 'pw_spe_text_domain' );
Expand Down Expand Up @@ -100,4 +100,4 @@ function pw_spe_filter_title( $title = '', $post_id = 0 ) {
return $title;

}
add_filter( 'the_title', 'pw_spe_filter_title', 100, 2 );
add_filter( 'the_title', 'pw_spe_filter_title', 100, 2 );