Closed donmhico closed 10 months ago
This PR introduces a new filter named ocdi/import_successful_buttons, which allows developers to add/edit the buttons displayed after the import process is successful.
ocdi/import_successful_buttons
This PR fixes #239.
add_filter( 'ocdi/import_successful_buttons', 'test_ocdi_import_buttons' ); function test_ocdi_import_buttons( $buttons ) { return [ [ 'label' => 'Visit Theme Options', 'href' => add_query_arg( 'page', 'my-theme', admin_url( 'themes.php' ) ), 'target' => '_blank', 'class' => 'button button-primary button-hero', ], [ 'label' => 'Request Support', 'href' => 'https://my-awesome-theme.com/support/', 'target' => '_blank', 'class' => 'button button-primary button-hero' ] ]; }
Description
This PR introduces a new filter named
ocdi/import_successful_buttons
, which allows developers to add/edit the buttons displayed after the import process is successful.Motivation
This PR fixes #239.
Filter usage