Skip to content

Instantly share code, notes, and snippets.

@dovy
Created June 28, 2014 06:53
Show Gist options
  • Save dovy/2414ebf4a49209643ca7 to your computer and use it in GitHub Desktop.
Save dovy/2414ebf4a49209643ca7 to your computer and use it in GitHub Desktop.
<?php
if ( ! function_exists( "RdxIO_add_widgets" ) ):
function RdxIO_add_widgets( $widgets ) {
$widgets[] = array(
'id' => 'testWidget',
'title' => 'Test Widget Title',
'name' => 'WORK',
'desc' => 'This is the description',
'fields' => array(
array(
"id" => 'textTest',
'title' => 'Text Test',
'subtitle' => 'Text Test Subtitle',
'desc' => 'Text Test Description',
'type' => 'text'
),
)
);
return $widgets;
}
add_action( 'redux/widgets/rdxIO/widgets', 'RdxIO_add_widgets' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment