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 donation button that lets users contribute easily using PayPal or Stripe, supporting causes directly from your site.
Add Messenger Chat to your site to communicate with visitors, offer fast support, and create a smoother user experience across all pages.
Show progress with animated progress circles that visualize goals, display achievements, and keep visitors engaged.
Showcase content with a card slider that presents images, text, and buttons in a smooth, customizable layout to keep visitors engaged.
Show key stats with an animated number counter that draws attention, adds social proof, and helps increase trust and conversions.
Use a notification bar to alert users, highlight offers, and drive clicks that boost engagement, signups, and conversions.

Show fresh content from any source with an RSS feed that keeps your site updated, improves navigation, and boosts user engagement.
Showcase content with a creative card carousel that rotates banner style items to highlight offers and important messages.
Display a cookies consent bar that explains usage and supports GDPR compliance, enhancing user trust and legal clarity.
Use an image magnifier to let visitors zoom in on photos, view fine details clearly, and enjoy a more accessible and informative visual experience.
Create a TDEE Calculator that helps visitors estimate daily calorie needs and make informed decisions.
Add a unified chat tool to your site that connects users via WhatsApp, Messenger, Telegram, or email for seamless support.
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!
