change locale action `tainacan-register-filter-type` #349

This commit is contained in:
vnmedeiros 2020-01-28 11:47:46 -03:00
parent 74b1cba44a
commit 3afb9a87f9
2 changed files with 1 additions and 1 deletions

View File

@ -32,6 +32,7 @@ function tainacan_load_plugin_textdomain() {
} }
add_action( 'plugins_loaded', 'tainacan_load_plugin_textdomain' ); add_action( 'plugins_loaded', 'tainacan_load_plugin_textdomain' );
do_action('tainacan-register-filter-type');
add_action( 'after_setup_theme', function() { add_action( 'after_setup_theme', function() {
add_image_size( 'tainacan-small', 40, 40, true ); add_image_size( 'tainacan-small', 40, 40, true );
add_image_size( 'tainacan-medium', 275, 275, true ); add_image_size( 'tainacan-medium', 275, 275, true );

View File

@ -164,7 +164,6 @@ class Admin {
global $TAINACAN_BASE_URL; global $TAINACAN_BASE_URL;
global $TAINACAN_EXTRA_FILTER_SCRIPTS; global $TAINACAN_EXTRA_FILTER_SCRIPTS;
do_action('tainacan-register-filter-type');
$deps = ['underscore', 'media-editor', 'media-views', 'customize-controls']; $deps = ['underscore', 'media-editor', 'media-views', 'customize-controls'];
foreach($TAINACAN_EXTRA_FILTER_SCRIPTS as $dep) { foreach($TAINACAN_EXTRA_FILTER_SCRIPTS as $dep) {
$deps[] = $dep; $deps[] = $dep;