How to create multicheck PHP?

This is ok.

$options[] = array(
‘name’ => __( ‘Set Stle For All Links’, ‘wptheme’ ),
‘desc’ => __( ‘Choose Style For All Links.’, ‘wptheme’ ),
‘id’ => ‘set_link_style’,
‘type’ => ‘radio’,
‘std’ => ‘0’,
‘options’ => array(
‘1’ => __( ‘style 1’, ‘wptheme’ ),
‘2’ => __( ‘style 2’, ‘wptheme’ ),
‘3’ => __( ‘style 3’, ‘wptheme’ ),
‘4’ => __( ‘style 4’, ‘wptheme’ ),
‘5’ => __( ‘style 5’, ‘wptheme’ ))
);

so i need help to add PHP functions,

I want to create the following functions

if select 1 add this link and disable multi links 2345
if select 2 add this link and disable multi links 1345
if select 3 add this link and disable multi links 1245
if select 4 add this link and disable multi links 1235
if select 5 add this link and disable multi links 1234

?

i have this but this is only for 1 link…

if ( wptheme_option( ‘set_link_style’, 0) != 0 )
wp_enqueue_style( ‘set-link-style’, get_template_directory_uri() . ‘/style-link-comic-sans-italic.css’, array(), $wptheme_version );

Read more here:: How to create multicheck PHP?

Leave a Reply

Your email address will not be published. Required fields are marked *