This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'mainwp_manage_sites_edit', 'myhook_mainwp_manage_sites_edit', 10, 1 ); | |
| function myhook_mainwp_manage_sites_edit( $website ) { | |
| $myvalue = apply_filters( 'mainwp_getwebsiteoptions', false, $website, 'my_site_value' ); | |
| ?> | |
| <div class="ui grid field"> | |
| <label class="six wide column middle aligned"><?php esc_html_e( 'My Value', 'mainwp' ); ?></label> | |
| <div class="ui six wide column" data-tooltip="<?php esc_attr_e( 'My Value', 'mainwp' ); ?>" data-inverted="" data-position="top left"> | |
| <div class="ui left labeled input"> | |
| <input type="text" id="mainwp_managesites_edit_my_value" name="mainwp_managesites_edit_my_value" value="<?php echo esc_html($myvalue); ?>"/> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: MainWP Hello World Extension | |
| * Plugin URI: https://yourwebsiteurl.com | |
| * Description: MainWP Hello World Extension is used for the demo. | |
| * Version: 1.0 | |
| * Author: Your Name | |
| * Author URI: https://yourwebsiteurl.com | |
| */ |
OlderNewer