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.
Create structured layouts with a section builder that lets you design custom website sections, customize styles, and organize content for a clearer user experience.
Display social proof avatars that show user activity and ratings, build trust instantly, and help visitors feel confident about your credibility.
Show YouTube videos with a YouTube slider that displays clips in a smooth, customizable layout to boost engagement.
Use a subscription button to streamline recurring payments, simplify signup, and help increase conversions with seamless PayPal or Stripe integration.
Show Instagram posts in a live feed that keeps content fresh, builds social proof, and helps visitors engage with your brand.
Add a PDF viewer to your site to display documents, share product information, and give visitors easy access to helpful content in one place.

Show Blogger posts automatically with a Blogger feed that keeps your content fresh, improves navigation, and helps visitors discover more of your work.
Add a comments system with replies, voting, and moderation to boost engagement and build an active community on your site.
Showcase content with a creative card carousel that rotates banner style items to highlight offers and important messages.
Add a customizable leaderboard to your site to display rankings, track scores, and encourage friendly competition.
Add an MP3 Player to your website and engage visitors with music, podcasts, and spoken audio without any setup complexity.
Showcase content with a card carousel that combines images and text, improves visual design, and helps visitors explore key information.
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!
