Add a drop-down list to the general options wordpress
The start is set, only you need to change the input code to select.
Select 2 values.
And write if the condition of the output on the page, if the value is selected the first to...
The initial code:
function add_option_field_to_general_admin_page(){
Creation of Options
$option_app = 'my_app'
Registration of Options
register_setting( 'general', $option_app );
Adding field settings
Add_settings_field (
‘myapp_setting-id’,
To allow registration on the site?“The
‘myapp__function’,
“General”
“Default”
by Array(
‘id’ => ‘myapp_setting-id’,
‘option_app’ => ‘my_app’
)
and the
The
add_action('admin_menu', 'add_option_field_to_general_admin_page');
There is a problem, how to change input to select?
myapp__function( $val ){
$id = $val ['id']
$option_app = $val['option_app']
» ?
Client's review of cooperation with Pasha Hodanich
Add a drop-down list to the general options wordpressA great executive.
And the most important lightning, I recommend!
Freelancer's review of cooperation with Konstantin Grad
Add a drop-down list to the general options wordpressThe collaboration went successfully, everyone is happy, thank you, I recommend!
-
710 47 0 Hi, I have experience working with WordPress, I can do it right now, I will be happy to collaborate!
Current freelance projects in the category PHP
Fix CLSIt is necessary to fix the Cumulative Layout Shift through code PageSpeed does not see this problem, but through Google Chrome, it is visible that there is a layout shift for the desktop version of the page According to Google Search, there is an error regarding the speed of… PHP, Web Programming ∙ 1 day back ∙ 26 proposals |
Transfer the fully ready adaptive HTML5 structure to WordPress.
267 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 1 day 3 hours back ∙ 60 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 1 day 19 hours back ∙ 25 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 2 days 16 hours back ∙ 34 proposals |
A developer is needed to complete and integrate a project for automatic data collection and processing.
16 USD
The main part of the parser has already been implemented. The parser works in a Windows environment through Microsoft Edge: the site has anti-bot protection, so data collection is performed not through direct HTTP requests, but through a live browser session. The scripts control… PHP, Web Programming ∙ 2 days 22 hours back ∙ 25 proposals |