Snow Monkey Heading Widget Area WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA #1 in Theme Tools
A plugin that adds a widget area to be displayed above the first heading of posts.
★ 1stars
700krelease downloads
≈19kactive sites
2.2.6latest · 2mo ago
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/inc2734/snow-monkey-heading-widget-area/releases/download/2.2.6/snow-monkey-heading-widget-area.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Filter hooks
snow_monkey_heading_widget_area_allow_post_types
/**
* Which post type will display the widget area
*
* @param array $post_types
* @return array
*/
add_filter(
'snow_monkey_heading_widget_area_allow_post_types',
function( $post_types ) {
return $post_types;
}
)
snow_monkey_heading_widget_area_view_args
/**
* You can customize the template args
*
* @param array $args
* @var string $slug
* @var string $name
* @var array $vars
* @return array
*/
add_filter(
'snow_monkey_heading_widget_area_view_args',
function( $args ) {
return $args;
}
);
snow_monkey_heading_widget_area_view_hierarchy
/**
* You can customize the template root
*
* @param array $hierarchy
* @param string $slug
* @param string $name
* @param array $vars
* @return array
*/
add_filter(
'snow_monkey_heading_widget_area_view_hierarchy',
function( $hierarchy, $slug, $name, $vars ) {
return $hierarchy;
},
10,
4
);
snow_monkey_heading_widget_area_view_render
/**
* You can customize the template html
*
* @param string $html
* @param string $slug
* @param string $name
* @param array $vars
* @return string
*/
add_filter(
'snow_monkey_heading_widget_area_view_render',
function( $html, $slug, $name, $vars ) {
return $html;
},
10,
4
);
Action hooks
snow_monkey_heading_widget_areaview
/**
* You can customize the template html
*
* @param string $name
* @param array $vars
* @return string
*/
add_action(
'snow_monkey_heading_widget_area_view_<template_slug>',
function( $name, $vars ) {
?>
foo
<?php
},
10,
3
);
snow_monkey_heading_widget_area_view_pre_render
/**
* You can customize the template args
*
* @param array $args
* @var string $slug
* @var string $name
* @var array $vars
* @return array
*/
add_filter(
'snow_monkey_heading_widget_area_view_pre_render',
function( $args ) {
return $args;
}
);
snow_monkey_heading_widget_area_view_post_render
/**
* You can customize the template args
*
* @param array $args
* @var string $slug
* @var string $name
* @var array $vars
* @return array
*/
add_filter(
'snow_monkey_heading_widget_area_view_post_render',
function( $args ) {
return $args;
}
);Releases
21 releases. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads
Active-site estimate ≈18,870 comes from the median of recent superseded releases. Method.