First of all open your functions.php theme file. All the next steps will take place in it.
1. Add callback function to admin_menu action hook
if ( class_exists( 'YMFO_Page' ) ) { /** Registers YMFO custom options */ add_action( 'admin_menu', function () { // Next code here }); } 2. Create options page
For example it will be a contacts page.
$contacts_page = new YMFO_Page( 'Contacts', 'contacts' );
The first function argument is the page title, and the second is the page slug.
3. Create options section
For example it will be a section with social media links.
$contacts_page->add_section( 'Social media', 'social_media' );
The first function argument is the section title, and the second is the section slug.
4. Add options fields to section
$contacts_page->add_field( 'YouTube', 'youtube_link', 'url', 'social_media' ); $contacts_page->add_field( 'Facebook', 'facebook_link', 'url', 'social_media' );
The first function argument is the field title, the second is the field slug, the third is the field type (you can find allowed types below) and the fourth is the field section slug.
It’s done!
You can locate the new options page in the WordPress admin area on the sidebar.
Our result code is:
if ( class_exists( 'YMFO_Page' ) ) { /** Registers YMFO custom options */ add_action( 'admin_menu', function () { // Create page $contacts_page = new YMFO_Page( 'Contacts', 'contacts' ); // Create section $contacts_page->add_section( 'Social media', 'social_media' ); // Create fields $contacts_page->add_field( 'YouTube', 'youtube_link', 'url', 'social_media' ); $contacts_page->add_field( 'Facebook', 'facebook_link', 'url', 'social_media' ); }); } To get your options values use ymfo_get_option( $page_slug, $field_slug ).
For example let’s print a link to your YouTube channel:
<a href="<?php echo esc_attr( ymfo_get_option( 'contacts', 'youtube_link' ) ); ?>">YouTube</a>
Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
Yan
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Add a Stripe Button to your website to give customers a fast, trusted checkout experience.
Show rankings and performance data on your site with a customizable scores board that motivates participation and keeps users engaged.
Create a course registration form that lets students sign up for your classes, saves every submission, and sends you a notification for each new enrollment.
Create a TDEE Calculator that helps visitors estimate daily calorie needs and make informed decisions.
Add a no-code music player to your site to stream audio, share playlists, and support multiple formats with easy setup.
Show a GDPR-ready cookie notice that clearly explains how cookies are used, helping you stay compliant while creating a more transparent experience for your visitors.
Use a support form that lets customers submit tickets, saves each request, sends notifications, and helps you manage support more efficiently.

3D cards that highlight important information with depth and motion, capture attention instantly, and help visitors navigate content more effectively.
Add pricing tables to your site to present plans clearly, help visitors compare features, and guide them toward faster and more confident conversions.
Show Google Play reviews for your Android app to build trust, strengthen credibility, and help visitors make confident download decisions.

Show Pinterest content in a Pinterest feed that keeps your page visually engaging, highlights new ideas, and helps visitors explore fresh inspiration.

Show Vimeo videos in a Vimeo feed that keeps content fresh and helps visitors discover more of your video library.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
