Skip to content

Commit

Permalink
Merge pull request #34 from skaut/partials
Browse files Browse the repository at this point in the history
Partials
  • Loading branch information
marekdedic authored Apr 10, 2020
2 parents 415619a + fe866ae commit d6651c4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stubs/WordPress/class-wp-customize-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
/**
*/
class WP_Customize_Manager {
/**
* @var WP_Customize_Selective_Refresh
*/
public $selective_refresh;

/**
* @param WP_Customize_Control|string $id
* @param array $args {
Expand Down
9 changes: 9 additions & 0 deletions stubs/WordPress/class-wp-customize-partial.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* @package phan-wordpress-stubs
*/

/**
*/
class WP_Customize_Partial {
}
26 changes: 26 additions & 0 deletions stubs/WordPress/class-wp-customize-selective-refresh.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* @package phan-wordpress-stubs
*/

/**
*/
class WP_Customize_Selective_Refresh {
/**
* @param WP_Customize_Partial|string $id
* @param array $args {
* @type string $type
* @type string $selector
* @type string[] $settings
* @type string $primary_setting
* @type string $capability
* @type callable $render_callback
* @type bool $container_inclusive
* @type bool $fallback_refresh
* }
*
* @return WP_Customize_Partial
*/
public function add_partial( $id, $args = array() ) {
}
}

0 comments on commit d6651c4

Please sign in to comment.