WordPress.org

Make WordPress Core

Ticket #28754: add-actions-to-general-settings.diff

File add-actions-to-general-settings.diff, 860 bytes (added by enej, 7 years ago)

Additional filters for the general settings page.

  • wp-admin/options-general.php

     
    8787<h2><?php echo esc_html( $title ); ?></h2>
    8888
    8989<form method="post" action="options.php">
     90
    9091<?php settings_fields('general'); ?>
    9192
     93<?php
     94/**
     95* Fires before a general settings page but inside the form.
     96*
     97* @since 4.0
     98*/
     99do_action( 'before_general_setting_page' ); ?>
     100
    92101<table class="form-table">
    93102<tr>
    94103<th scope="row"><label for="blogname"><?php _e('Site Title') ?></label></th>
     
    321330
    322331<?php do_settings_sections('general'); ?>
    323332
     333<?php
     334/**
     335* Fires after a general settings page but inside the form.
     336*
     337* @since 4.0
     338*/
     339do_action( 'after_general_setting_page' ); ?>
     340
    324341<?php submit_button(); ?>
    325342</form>
    326343