• How to save form data in option page for all sites in wordpress multisite?

    I use this code:

    <div class="wrap">
                        <h2>Test</h2>
                        <form method="post" action="options.php">
                            '.wp_nonce_field('update-options').'
                            <p><strong style="float:left;padding-top:2px;">test:</strong>&nbsp;&nbsp;
                                <label class="switch">
                                    <input type="checkbox" class="switch-input" name="test_value" ' . $checkbox_checked . '>
                                    <span class="switch-label" data-on="On" data-off="Off"></span>
                                    <span class="switch-handle"></span>
                                </label>
                            </p>
                            <p><input type="submit" name="Submit" value="Salva" /></p>
                            <input type="hidden" name="action" value="update" />
                            <input type="hidden" name="page_options" value="test_value" />
                        </form>
                    </div>

    But is saved in wp_postmeta.
    I would like to save wp_sitemeta.

    is it possible?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘save data form for all network in multisite’ is closed to new replies.