Skip to content

Commit

Permalink
#8 change the prefix of PHP-WP-filters of the plugin: vsm/ -> entview/
Browse files Browse the repository at this point in the history
  • Loading branch information
versusbassz committed Jan 23, 2022
1 parent c94f7cd commit 2d60765
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion entity-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
entview_start_plugin();

function entview_start_plugin() {
if (! apply_filters('vsm/plugin_enabled', true)) {
if (! apply_filters('entview/plugin_enabled', true)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function init()
}

// i18n
if (! apply_filters('vsm/is_i18n_enabled', true)) {
if (! apply_filters('entview/is_i18n_enabled', true)) {
add_filter('override_load_textdomain', '\\VsEntityViewer\\disable_i18n_for_plugin', 10, 3);
}

Expand Down
2 changes: 1 addition & 1 deletion src/inc/logic.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function is_plugin_allowed(int $user_id): bool
{
$capability = is_multisite() ? 'manage_sites' : 'create_users';
$allowed = user_can($user_id, $capability);
$allowed_filtered = apply_filters('vsm/is_plugin_allowed', $allowed, $user_id);
$allowed_filtered = apply_filters('entview/is_plugin_allowed', $allowed, $user_id);

return $allowed_filtered;
}
Expand Down

0 comments on commit 2d60765

Please sign in to comment.