Skip to content

Commit

Permalink
refactor(intuitive-custom-post-order): update textdomain function name
Browse files Browse the repository at this point in the history
  • Loading branch information
timohubois committed Nov 5, 2023
1 parent b921f09 commit 09a7688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intuitive-custom-post-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct() {
}

// textdomain
add_action( 'plugins_loaded', [ $this, 'my_plugin_load_plugin_textdomain' ] );
add_action( 'plugins_loaded', [ $this, 'hicpo_load_plugin_textdomain' ] );

// add menu
add_action( 'admin_menu', [ $this, 'admin_menu' ] );
Expand Down Expand Up @@ -173,7 +173,7 @@ public function hicpo_activation() {
update_option( 'hicpo_ver', HICPO_VER );
}

public function my_plugin_load_plugin_textdomain() {
public function hicpo_load_plugin_textdomain() {
load_plugin_textdomain( 'intuitive-custom-post-order', false, basename( dirname( __FILE__ ) ) . '/languages/' );
}

Expand Down

0 comments on commit 09a7688

Please sign in to comment.