sfw/register/sfw-promotion

The code documented on this page is only available in the pro version.

Description

Filters the promotion posttype before registration

Since: 1.0.0

For further information see: register_post_type

Usage

<?php

	function my_sfw_register_sfw_promotion ( $args ){
		…
		// modify $args here
		…
		return $args;
	}

	add_filter( 'sfw/register/sfw-promotion', 'my_sfw_register_sfw_promotion', 10, 1 );

?>

Parameter

$args
(array)

File

pro/core/components/promotions/promotions-posttype.php