wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_wp_add_entity_action_modules_to_editor_script › WordPress Function

Seit7.2.0
Veraltetn/v
› _wp_add_entity_action_modules_to_editor_script ( $scripts = null )
Zugriff:
  • private
Parameter:
  • (WP_Scripts|null) $scripts The scripts registry. Defaults to the global one.
    Erforderlich: Nein
    Standard: null
Definiert in:
Codex:

Declares the script modules of the entity actions as dependencies of the editor script, see _wp_add_entity_modules_to_editor_script().

The actions are loaded by usePostActions() of the editor script, so every screen showing them loads it. The admin_footer action passes it no argument, so the global registry is used. In other scenarios (tests), the scripts are given directly.


Quellcode

function _wp_add_entity_action_modules_to_editor_script( $scripts = null ) {
	_wp_add_entity_modules_to_editor_script( $scripts, 'wp_get_all_registered_entity_action_modules' );
}