hello i update my plugin because after before all change i must make in code, now i want to add option in wp-admin where i can change it automatically,i want to change automatically in administration panel, address url page where is “Term and condition” but i don’t know how to do it, i add new option and menu and i have place when i have to write update and save it but i don’t know how save it. i know my English is so bad but i trust if you see my code, you know what mean.

Plugin Name:Terms and Conditions
Version: 0.0
Description: Terms and condition

add_action('change_link','Terms and Conditions');
function terms_condition()
echo "terms condition";
/* Runs when plugin is activated */

/* Runs on plugin deactivation*/
register_deactivation_hook( __FILE__, 'terms_condition_remove' );

function terms_condition_install() {
/* Creates new database field */
add_option("terms_condition_data", 'Default', '', 'yes');

function terms_condition_remove() {
/* Deletes the database field */

if ( is_admin() ){

/* Call the html code */
add_action('admin_menu', 'terms_condition_admin_menu');

function terms_condition_admin_menu() {
add_options_page('Terms and condition', 'Terms and Condition', 'administrator',
'terms_and_condition', 'terms_condition_html_page');
function terms_condition_html_page() {

<h2>Adress you site with terms and condition</h2>

<form method="post" action="options.php">
<?php wp_nonce_field('update-options'); ?>

<table width="510">
<tr valign="top">
<th width="92" scope="row">Enter Text</th>
<td width="406">
<input name="terms_condition_data" type="url" id="terms_condition_data"
value="<?php echo get_option('terms_condition_data'); ?>" />
(Paste link)</td>

<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_url" value="terms_condition_data" />

<input type="submit" value="<?php _e('Save Changes') ?>" />


add_filter("wpjb_form_init_company", "mod_wpjb_tos_field");
add_filter("wpjr_form_init_register", "mod_wpjb_tos_field");

function mod_wpjb_tos_field($form) {

    if(is_admin() || $form instanceof Daq_Form_ObjectAbstract && !$form->isNew()) {
        return $form;

    // change terms-and-conditions to your ToS page slug,
    // or create a Page with slug terms-and-conditions
    $page = get_page_by_path("terms-and-conditions");

    if($page) {
        $url = get_permalink($page->ID);
    } else {
        $url = "$new";

    $form->addGroup("tos", "Terms and Conditions");

    $e = $form->create("uterms", "checkbox");
    $e->setLabel(__("Terms And Conditions", "wpjobboard"));
    $e->addOption(1, 1, "I have read and agree to the <a href="$url">Terms and Conditions</a>.");
    $e->addFilter(new Daq_Filter_Int());
    $form->addElement($e, "tos");

    return $form;


Read more here: my plugin for terms and condition doesn’t work


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: