• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Tests_Hooks_DoAction::_action_callback() – Use this rather than MockAction so we can test callbacks with no args

You appear to be a bot. Output may be restricted

Description

Use this rather than MockAction so we can test callbacks with no args

Usage

Tests_Hooks_DoAction::_action_callback( $args );

Parameters

$args
( mixed ) optional –

Returns

void

Source

File name: wordpress-develop-tests/phpunit/tests/hooks/doAction.php


Lines:

1 to 7 of 7
  public function _action_callback( ...$args ) {
    $this->events[] = array(
      'action' => __FUNCTION__,
      'args'   => $args,
    );
  }
 

 View on GitHub

Published: 20th March 2022 | Last updated: 20th March 2022

Primary Sidebar

Information

Function name: Tests_Hooks_DoAction::_action_callback
Class ref: Tests_Hooks_DoAction
Plugin ref: WordPress develop tests
Version: 5.9.3
Sourcefile: phpunit/tests/hooks/doAction.php
File ref: phpunit/tests/hooks/doAction.php
Deprecated?: No
API Letters: A,D,H,T

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 6.4.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites