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.
Use right click protection to prevent copying by disabling right click actions, protecting your content and reducing unauthorized reuse on your site.
Use a coupon popup to highlight special offers, capture email leads, reduce cart abandonment, and turn more visitors into paying customers.
Show progress clearly with animated progress bars that visualize goals, highlight achievements, and keep visitors engaged and motivated.
Collect candidate information with a job application form that organizes submissions, streamlines hiring, and helps you manage applicants efficiently.
Show Etsy reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions that support higher sales.
Add opening hours to your site to give visitors clear, reliable business information that improves trust, reduces confusion, and supports user experience.
Collect user insights with a feedback form that gathers valuable input, improves user experience, and helps you understand visitor needs more clearly.

Add floating corner pop-ups to share updates, promotions, or messages in a non-intrusive, customizable format.
Show trust badges that highlight security and reliability, build customer confidence, and help visitors feel safe making purchases on your site.
Add WhatsApp Chat to your site to communicate with visitors, deliver instant support, and create a smoother, more trustworthy user experience.
Slide in panel that appears from the top or bottom to highlight offers, capture attention, and guide visitors toward more conversions.
Create a branded home for all your links and content.
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!
