# WordpressAction

{% hint style="info" %}
Code is executed when Wordpress is loaded. Action is instantiated by a Wordpress mu-plugins.
{% endhint %}

```php
<?php

// src/Action/WordpressAction.php

namespace App\Action;

use Metabolism\WordpressBundle\Action\WordpressAction as BaseWordpressAction;

class WordpressAction extends BaseWordpressAction
{
	/*
	 * Equivalent to add_action('init', function(){ }
	*/
	public function init()
	{
		//add_action
	}
}

```
