first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
use WPML\Core\Twig_Extension;
use WPML\Core\Twig_SimpleFilter;
class WPML_Twig_WP_Plugin_Extension extends Twig_Extension {
/**
* Returns the name of the extension.
* @return string The extension name
*/
public function getName() {
return 'wp_plugin';
}
public function getFilters() {
return array(
new Twig_SimpleFilter( 'wp_do_action', array( $this, 'wp_do_action_filter' ) ),
);
}
public function wp_do_action_filter( $tag ) {
do_action( $tag );
}
}