change locale action `tainacan-register-filter-type` #349
This commit is contained in:
parent
74b1cba44a
commit
3afb9a87f9
|
@ -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 );
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue